List Company Relationship Leads
Return who in the calling organisation owns the relationships with its contacts at one company: each colleague, with the contacts whose relationship they own, the one owning the most first.
company_id is the company's company_uuid OR its Companies-House company_number — an unknown value yields 404. Only the organisation's contacts whose current company it is count, as on GET /v1/contacts?company_id=; a company with more of them than this summary reads says so in truncated. Colleagues are named, with their picture; their user ids are never published. Org-scoped via the principal's tenant DB. Requires the contacts:read scope.
Errors: 404 no company matches company_id.
curl -X GET "https://api.handshaik.com/v1/companies/{company_id}/relationship-leads" \
-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
itemsCompanyRelationshipLeadPublic[]requiredOne item per colleague, the one owning the most of the company's contacts first, then by name. Empty when no contact at the company has a relationship lead
truncatedbooleanrequiredWhether the company has more contacts than are read for this summary, so relationships with the newest of them may be missing
{
"items": [
{
"name": "string",
"picture_url": "string",
"contacts": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"first_name": "string",
"last_name": "string",
"current_role": "string"
}
]
}
],
"truncated": true
}