- Get contact by ID
🔐 Required role:
API_ADMIN📖 Data dictionary: Contact
Retrieve a specific contact by its unique identifier
Returns the contact wrapped in a contact key, with its contact info (name, email, phone, address) and its client links. Field names are snake_case except contact_info.firstName / contact_info.lastName. Optional columns are null when unset.
Not found: an id that matches no contact returns 200 with {"contact": null} (not 404). A non-numeric id returns 400.
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/gql/v1/contact/{id}
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/gql/v1/contact/{id}
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/gql/v1/contact/{id}
curl -i -X GET \
https://api.sandbox.aiwyn.app/gql/v1/contact/1001 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
-H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE'Contact found (contact is the record) or not found (contact is null)
Contact record as returned by POST /gql/v1/contacts, POST /gql/v1/contacts/search and GET /gql/v1/contact/{id}. Field names are snake_case except the firstName / lastName of contact_info. Every listed property is always present; optional columns are null when unset.
{ "contact": { "id": 1001, "pms_ref": "C-4451", "active": true, "contact_info_id": 7001, "office_id": 3, "staff_id": null, "type": null, "fwd_email_confirmation": false, "inactivated_at": null, "created_at": "2024-03-01T15:20:11.104223+00:00", "updated_at": "2024-09-14T08:02:47.551092+00:00", "is_managed_by_aiwyn": false, "is_created_by_aiwyn": false, "username": null, "custom_field_values": null, "contact_info": { … }, "contact_clients": [ … ] } }