Skip to content

Get contacts by client ID

Request

🔐 Required role: API_ADMIN

📖 Data dictionary: Contact

Retrieve active contacts associated with a specific client

Returns all contacts linked to the given client via the contact-client relationship, where the contact, contact-client link, and contact info are all active.

Results are ordered by last name then first name.

Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Path
clientIdinteger, >= 1required

Unique identifier of the client

Example:789
curl -i -X GET \
  https://api.sandbox.aiwyn.app/gql/v1/contacts/by_client/789 \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
  -H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE'

Responses

Active contacts for the client retrieved successfully. Only active links whose contact and contact info are active are returned, ordered by last name then first name. A clientId that matches no client returns 200 with {"contacts": []}.

Bodyapplication/json
contactsArray of objectsrequired
Response
{ "contacts": [ { … }, { … } ] }