Templates

Create a document from a template

{slug} is a library slug or one of your template ids. The template itself is never modified.

post/v1/templates/{slug}/documents/

Request

  • Base URL: https://api.pdfbetter.com
  • URL: https://api.pdfbetter.com/v1/templates/{slug}/documents/
  • Auth: HTTP bearer

Path parameters

slugstring required

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

titlestring

Response

Create a document from a template

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.