API reference
//
Get engagement by ID
🔐 Required role:
API_ADMIN📖 Data dictionary: Engagement
Retrieve a specific engagement by its unique identifier
The engagement is returned in an engagement array that holds at most one row, with the same row shape as the engagement list and search operations: engagement dates and statuses, the linked projects (jobs) and the partner, manager, creator, last updater and executor staff.
An id that matches no active engagement returns 200 with "engagement": []; this operation never returns 404. A non-numeric id returns 400.
Response Example:
{
"engagement": [
{
"id": 85,
"name": "2026 Test 999408",
"status": "EXECUTED",
"isActive": true,
"endDt": null,
"startDt": null,
"fiscalYear": 2026,
"engagementNameTemplate": "2026 Test 999408",
"createdAt": "2026-06-08T16:40:09.096612+00:00",
"sentAt": "2026-06-08T16:45:00.414069+00:00",
"executedAt": "2026-06-08T16:46:48.196882+00:00",
"isStartOnAcceptance": true,
"updatedAt": "2026-06-08T16:46:48.199113+00:00",
"paymentInfoType": "OPTIONAL",
"canceledAt": null,
"mode": "AUTOMATIC",
"addressContactInfoId": null,
"originatingEngagementId": null,
"clientId": 92,
"jobs": [
{
"id": 1,
"jobId": 829,
"jobServiceTermId": null,
"engagementCustomJobServiceTermId": null,
"isActive": true,
"job": {
"id": 829,
"name": "Expatriate Tax Services",
"status": "OPEN",
"clientId": 92,
"pmsRef": "AIWYN_829",
"jobRef": null,
"sysRefs": {}
}
}
],
"partnerStaff": {
"id": 18,
"firstName": "Robert",
"lastName": "Johnson",
"fullName": "Robert Johnson",
"pmsRef": "AIWYN_18",
"email": "r.johnson@company.com",
"createdAt": "2026-06-08T16:26:36.875604+00:00"
},
"managerStaff": { "id": 18, "firstName": "Robert", "lastName": "Johnson", "fullName": "Robert Johnson", "pmsRef": "AIWYN_18", "email": "r.johnson@company.com", "createdAt": "2026-06-08T16:26:36.875604+00:00" },
"createdByStaff": { "id": 18, "firstName": "Robert", "lastName": "Johnson", "fullName": "Robert Johnson", "pmsRef": "AIWYN_18", "email": "r.johnson@company.com", "createdAt": "2026-06-08T16:26:36.875604+00:00" },
"lastUpdatedByStaff": { "id": 18, "firstName": "Robert", "lastName": "Johnson", "fullName": "Robert Johnson", "pmsRef": "AIWYN_18", "email": "r.johnson@company.com", "createdAt": "2026-06-08T16:26:36.875604+00:00" },
"executedByStaff": null,
"renewedAt": null
}
]
}Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/gql/v1/engagement/{id}
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/gql/v1/engagement/{id}
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/gql/v1/engagement/{id}
curl -i -X GET \
https://api.sandbox.aiwyn.app/gql/v1/engagement/85 \
-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
{ "engagement": [] }