Get Company Group Structure
Return the company's whole group as a tree: its ultimate parent, every company the group owns, and where this company sits in it.
company_id is the company's company_uuid OR its Companies-House company_number — an unknown value yields 404. Companies registered abroad are in the tree without an id. A company in no group has empty items. A very large group is cut down to the companies nearest the top plus this company's own branch, and says so in truncated. Pure registry data, no CRM overlay. Requires the companies:read scope.
Errors: 404 no company matches company_id.
curl -X GET "https://api.handshaik.com/v1/companies/{company_id}/group-structure" \
-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
company_idstringpathrequiredThe company's
id(its UUID) or its Companies-Housecompany_number— either is accepted
Response
Successful Response
itemsGroupStructureNodePublic[]requiredThe group's ultimate parents, each with its subsidiaries nested under
children. Empty for a company in no group: no parent and no subsidiariestruncatedbooleanrequiredWhether the group was too large to return whole. The companies nearest the top are kept, and the path from the ultimate parent to the company asked for is kept unless it is unusually deep
{
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"company_number": "08189817",
"company_name": "string",
"country": "GB",
"company_status": "string",
"hierarchy_level": 0,
"is_target_company": false,
"logo_url": "string",
"app_url": "https://app.handshaik.co.uk/find/company/acme-ltd/overview?id=123",
"children": []
}
],
"truncated": true
}