Documents
Ensure Document Preview
POST
Returns how to show the document in a browser (image or PDF rendition). Starts PDF generation when a rendition is missing; poll while the status is generating.
ApiKeyAuthheader
x-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
documentId*stringLength
1 <= lengthOK
application/json- response
status*stringValue in
"ready""generating""unsupported"kind*|nullurl*|Signed URL of the browser-renderable rendition
createdAt*stringFormat
date-timecreatedByName*string|nullcurl -X POST 'https://api.tillor.eu/orgs/string/documents/string/preview'{ "status": "ready", "kind": "pdf", "url": "string", "createdAt": "2019-08-24T14:15:22Z", "createdByName": "string"}