.doc
, .docx
) are automatically converted to PDF on upload. The converted PDF will be optimised and stored, and the document returned in the response will always be in PDF format.
Note: Documents can only be added to envelopes that are still in draft status and have not been sent. Adding documents to a recalled envelope is not supported via the API.
Parameters
Optional user-defined unique identifier for the document, must be unique per envelope. If omitted, one will be auto-generated.
Optional display name of the document. If omitted, one will be auto-generated.
The base64-encoded content of the document. Must be a valid PDF or Word document. Max size: 10mb per document.
The MIME type of the uploaded file (
application/pdf
, application/msword
, application/vnd.openxmlformats-officedocument.wordprocessingml.document
).Word documents are converted to PDF automatically. Standard file size and page count limits apply — see Document limits for details.The unique identifier of the envelope to which this document should be attached. Envelope must be in
draft
status.