Skip to Content
Saved templates

Get a send-to-many batch

Status, counts, and each row's status, envelope id and last error. Polling while rows are queued also nudges sending along.

GET
/api/v1/bulk-batches/{id}

Status, counts, and each row's status, envelope id and last error. Polling while rows are queued also nudges sending along.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Workspace API key, e.g. "Authorization: Bearer aflo_live_<64 hex chars>". Keys are hashed at rest and shown only once at creation. A key has scopes: read (GET routes), draft (create or change documents, fields and templates) and send (send, void, remind and bulk send); a call outside them gets 403 insufficient_scope. A key may expire (401 api_key_expired). Keys made before scopes existed have full access.

Path Parameters

id*string

batch_id from POST /templates/{id}/bulk.

Response Body

The batch.

application/json
  1. response
success*boolean
data*
Example Request
curl -X GET 'https://appliflo.com/api/v1/bulk-batches/string'
Example Response
{  "success": true,  "data": {    "batch_id": "string",    "template_id": "string",    "template_version": 0,    "status": "queued",    "pause_reason": "quota",    "source": "web",    "created_at": "2019-08-24T14:15:22Z",    "finished_at": "2019-08-24T14:15:22Z",    "counts": {      "total": 0,      "queued": 0,      "sent": 0,      "failed": 0,      "excluded": 0,      "cancelled": 0    },    "rows": [      {        "row": 0,        "status": "queued",        "envelope_id": "string",        "error": "string",        "error_code": "transient",        "needs_fix": true,        "attempts": 0      }    ]  }}