API reference
//
Get engagement batch stat...
🔐 Required role:
ENG_C📖 Data dictionary: Engagement
Retrieve the status of an engagement batch
Returns the current processing status of a previously submitted engagement batch, along with the IDs of any engagements that have been created so far.
Use this endpoint to poll for completion after calling POST /api/v1/engagements/batch/create.
Batch statuses:
DRAFT— batch has been recorded but processing has not startedCREATING— engagements are actively being createdCREATED— all engagements in the batch have been created successfullyCANCELED— the batch was canceled before completion
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/api/v1/engagements/batch/{batchId}/status
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/api/v1/engagements/batch/{batchId}/status
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/api/v1/engagements/batch/{batchId}/status
curl -i -X GET \
https://api.sandbox.aiwyn.app/api/v1/engagements/batch/9001/status \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
-H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE'Batch status retrieved successfully
Response
{ "batchId": 9001, "status": "CREATING", "engagementIds": [ 34567 ] }