D
Druckling
Docs

List documents

GET
/documents

Authorization

headerAuthorizationBearer <token>

Authorization: Bearer dr_live_… or dr_test_…

Query Parameters

limit?integer
Range1 <= value <= 100
cursor?string
status?string
Value in"queued""rendering""rendered""failed""expired"
template?string

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/documents'
Example Response200
{  "object": "list",  "data": [    {      "id": "string",      "object": "document",      "status": "queued",      "template": "string",      "version": 0,      "filename": "string",      "format": "pdf",      "content_type": "string",      "image": {        "page": 0,        "scale": 0,        "width": 0,        "height": 0      },      "pages": 0,      "size_bytes": 0,      "url": "string",      "expires_at": "2019-08-24T14:15:22Z",      "error": {        "code": "string",        "message": "string",        "field": "string"      },      "einvoice": {        "format": "factur-x",        "syntax": "cii",        "profile": "string",        "customization_id": "string",        "attachment": "string"      },      "batch": {        "id": "string",        "index": 0      },      "language": "string",      "signature": {        "certificate": "string",        "certificate_name": "string",        "subject": "string",        "level": "B-B",        "signed_at": "2019-08-24T14:15:22Z",        "test_certificate": true      },      "storage": {        "bucket": "string",        "status": "pending",        "key": "string",        "error": "string",        "attempts": 0,        "delivered_at": "2019-08-24T14:15:22Z"      },      "test_mode": true,      "created_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string"}