API reference
/- Get contacts by client ID
List contacts
Search contacts
Get contact by ID
Upsert contacts
Get contacts by client ID
🔐 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
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/gql/v1/contacts/by_client/{clientId}
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/gql/v1/contacts/by_client/{clientId}
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/gql/v1/contacts/by_client/{clientId}
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'Response
{ "contacts": [ { … }, { … } ] }