Get a batch operation
GET /batch_operations/{uuid}
/batch_operations/{uuid}Returns the state of a batch: its status (pending, started or finished), how many calls it has, how many finished and how many failed (a failed call is one that answered 400 or higher). When the results are ready it gives a temporary address (valid 15 minutes) to download a JSON file with, for each call, its external_identifier, method, path, status and response.
When to use: After create_batch_operation, to follow progress until status is finished. If errored is above 0 read get_batch_operation_errors to see what failed.
When not to use: To follow a background task of Groups or Segments use get_async_task.
Permissions: No specific permission.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the batch. Get it with list_batch_operations, or from the response of create_batch_operation.
Response Body
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/batch_operations/9c5f2b18-7d34-4a61-b0e9-1f6a8d3c4e72" \ -H "X-Auth-Token: YOUR_API_KEY"{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "id": 0, "status": "pending", "total": 0, "finished": 0, "errored": 0, "finished_at": "string", "response_body_url": "http://example.com"}