Documents

Create a document

From a multipart upload (file, up to ~4 MB per request — use an upload for larger files), an https url (≤ 50 MB; private addresses refused, redirects not followed), a library template slug, or an uploadId. Same file-size, page and encryption checks as the app.

post/v1/documents/

Request

  • Base URL: https://api.pdfbetter.com
  • URL: https://api.pdfbetter.com/v1/documents/
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Any unique string (≤ 255 chars). The first successful response is replayed for 24 hours for the same key and request.

Request body

OR
OR

Response

Create a document

object'document' required
idstring required
titlestring required
kind'document' | 'template' | 'form' required
status'draft' | 'completed' | 'archived' required
pageCountinteger required
tagsstring[] required
folderIdstring nullable required
sourceNamestring nullable required
sourceSizeinteger nullable required
createdFromTemplatestring nullable required

Library template slug or user template id this document was created from

createdAtstring required

ISO 8601 timestamp (UTC)

updatedAtstring required

ISO 8601 timestamp (UTC)

Changes

No recorded changes to this operation across all 1 revision of this API.