D
Druckling
Docs

List batches

GET
/batches

Authorization

headerAuthorizationBearer <token>

Authorization: Bearer dr_live_… or dr_test_…

Query Parameters

limit?integer
Range1 <= value <= 100
cursor?string
status?string
Value in"queued""running""completed""failed""canceled"

Response Body

OK

application/json
  1. response
object*unknown
data*array<>
next_cursor*string|null
Example Request
curl -X GET 'https://druckling-nine.vercel.app/v1/batches'
Example Response200
{  "object": "list",  "data": [    {      "id": "string",      "object": "batch",      "status": "queued",      "template": "string",      "version": 0,      "filename_pattern": "string",      "counts": {        "total": 0,        "pending": 0,        "rendered": 0,        "failed": 0,        "canceled": 0      },      "zip_url": "string",      "zip_size_bytes": 0,      "zip_expires_at": "2019-08-24T14:15:22Z",      "error": {        "code": "string",        "message": "string"      },      "test_mode": true,      "created_at": "2019-08-24T14:15:22Z",      "finished_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string"}