KausateKausate Docs
Document
Viewing API version 2026-05-01. View the latest version.

Download document

Download the original, or use convertPdf=true for HTML/XHTML rendering or PDF ZIP joining. Unsupported sources return 422.

GET/documents/{document_key}/download
curl "https://api.kausate.com/documents/string/download" \
  -H "Kausate-Version: 2026-05-01" \
  --location \
  --output document.pdf

Path Parameters

document_key*string

Encrypted document key

Query Parameters

convertPdf?boolean

Render HTML/XHTML or join all PDF ZIP members as one PDF

Defaultfalse

Header Parameters

Kausate-Version?string
Default"2026-05-01"
Formatdate

Response Body

application/pdf

application/json

application/json

application/json

application/json

"string"
Empty
{
  "detail": "Invalid company ID format",
  "code": "request.invalid",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}
{
  "detail": "Requested document does not exist",
  "code": "document.not_found",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}
{
  "detail": [
    {
      "loc": [
        "body",
        "kausateId"
      ],
      "msg": "Field required",
      "type": "missing"
    }
  ],
  "code": "request.invalid",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}
{
  "detail": "An unexpected error occurred. If this persists, please contact support@kausate.com",
  "code": "internal.unexpected",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Last updated on