Skip to main content

Create a document from a template

POST 

/public/v1/documents

Creates a document from a previously-imported template and returns it in draft status. Resolves the inbound template_uuid to the imported template, merges the supplied tokens and fields into the document, maps the recipients (signing order is taken from signing_order), and prepares the document for signature. The document is returned in document.draft status; call the send endpoint with the returned id to dispatch it.

The id in the response is the document identifier to use for all follow-up calls (send, status).

Request

Responses

Document created in draft status.

Response Headers
    X-Request-Id

    Correlation id for this request, returned on every response (success and error). Quote it when contacting support to pinpoint the exact request, and use it to correlate your own logs. It is the same 128-bit id as the trace-id segment of the traceparent header.

    traceparent

    W3C Trace Context identifier for this request, returned on every response. Send your own traceparent on a request to have it adopted, so a multi-call workflow shares one trace. Format: 00-<32-hex trace-id>-<16-hex span-id>-<2-hex flags>.