Autocomplete Companies
Resolve a company name or number, as typed, to Handshaik company ids.
Built for a typeahead, or for the step that turns a name into the company_uuid that POST /v1/contacts takes. q matches the start of a company name (case, punctuation and a trailing LTD / LIMITED are ignored), not a substring as GET /v1/companies/search does. A q that looks like the start of a Companies-House number (3–8 digits, or two letters and up to 6 digits) also matches numbers.
Ranked, best first: an exact name match, then active companies, then shorter names, then alphabetical. For a number-shaped q, number matches (in number order) follow any exact name match and take up to half the list, ahead of the other name matches. There is no next page; to narrow the results, type more. No match is a 200 with an empty items. Use GET /v1/companies/{company_id} with an item's id for the full registry detail. Requires the companies:read scope.
curl -X GET "https://api.handshaik.com/v1/companies/autocomplete?q=tesco" \
-H "Authorization: Bearer $HANDSHAIK_PUBLIC_API_KEY"Authorization
AuthorizationstringheaderrequiredOAuth2 client_credentials (M2M). Request a token with the
audienceset tohttps://api.handshaik.com.Handshaik's own first-party apps, such as the Chrome extension, instead sign a Handshaik user in with the authorization code flow and PKCE, with the same
audience. Such a token acts as that user, within their organisation. Partner integrations use client_credentials.
Parameters
qstringqueryrequiredWhat the user has typed so far: the start of a company name, or the start of a Companies-House number (a dropped leading zero is allowed)
limitintegerqueryThe most companies to return (1–25)
Default:10
Response
Successful Response
itemsCompanyAutocompleteItemPublic[]requiredCompanies matching the term, at most
limit, best first. Empty when nothing matches
{
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"company_number": "12345678",
"company_name": "string",
"company_status": "string",
"registered_office_address": "string",
"url": "string",
"logo_url": "string"
}
]
}