Skip to content

Get engagement batch status

Request

🔐 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 started
  • CREATING — engagements are actively being created
  • CREATED — all engagements in the batch have been created successfully
  • CANCELED — the batch was canceled before completion
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Path
batchIdinteger, (int64), >= 1required

Unique identifier of the engagement batch

Example:9001
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'

Responses

Batch status retrieved successfully

Bodyapplication/json
batchIdinteger, (int64)

Unique identifier of the engagement batch

Example:9001
statusstring

Current processing status of the batch

Enum:"DRAFT""CREATING""CREATED""CANCELED"
Example:"CREATED"
engagementIdsArray of integers, (int64)

IDs of engagements created by this batch

Example:
[ 34567, 34568 ]
Response
{ "batchId": 9001, "status": "CREATING", "engagementIds": [ 34567 ] }