Create a document upload handle
POST/v1/docgen/uploads
Creates a pre-signed upload URL for staging large documents into storage before referencing them by ID in template creation or import.
Upload flow:
- Call
POST /v1/docgen/uploadswith the documentcontentTypeand optionalsizeBytes. - Issue an HTTP
PUTrequest directly to the returneduploadUrlwith the specifiedheadersand raw binary bytes within 15 minutes. - Supply the returned
uploadIdastemplateContentUploadIdwhen creating a DOCX template viaPOST /v1/docgen/templates, or asdocumentUploadIdwithintemplateJson.documents[]when importing viaPOST /v1/docgen/templates/import-from-sourcewithin 24 hours.
Request
Responses
- 201
- 400
- 401
- 403
Document upload handle created
Response Headers
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.
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>.
Directs caches not to store responses containing pre-signed URLs.
Invalid request body (unsupported content type or size exceeds maximum)
Response Headers
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.
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>.
Unauthorized
Response Headers
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.
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>.
Forbidden (insufficient permissions or missing docgen:write scope)
Response Headers
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.
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>.