Create a document
Creates a new document in draft status. You must first upload the PDF with the Uploads API to obtain a storage_id.
POST
/documentsAuthorization
AuthorizationBearer token · headerrequiredPass your API key as a Bearer token. API keys are scoped to specific operations — configure scopes in your organization's Settings → Developer → API Keys.
Request body
requiredapplication/jsontitlestringrequiredDocument title displayed to recipients
descriptionstringstorage_idstringrequiredStorage ID returned by the Uploads API
file_sizeintegerrequiredFile size in bytes
file_typestringdefault: "application/pdf"
page_countintegerNumber of pages in the document
deadlinestring<date-time>Signing deadline — recipients cannot sign after this date
Responses
200
Document created
idstringrequired400
Invalid request parameters
typestringrequiredMachine-readable error code
statusintegerrequiredHTTP status code
titlestringrequiredHuman-readable error message
detailsobjectField-level validation errors
401
Missing or invalid API key
typestringrequiredMachine-readable error code
statusintegerrequiredHTTP status code
titlestringrequiredHuman-readable error message
detailsobjectField-level validation errors