Replace template document
Replaces the PDF document of an existing template while preserving all field placements. The replacement document must have the same page count and matching page dimensions (within 1pt tolerance) as the original.
Authorizations
API key for authentication. Use your API key directly without any prefix (e.g., 'your-api-key'). Bearer prefix is optional but not required.
Path Parameters
Template ID
Body
Base64-encoded PDF or DOCX document. DOCX files are automatically converted to PDF.
Response
Document replaced successfully
Unique identifier for the template
Template name
255Template creation timestamp
Template description
Pre-signed URL to the PDF document. This is a time-limited signed URL for secure access - see document_url_expires_at for expiration time. Initial URLs are valid for 7 days; refreshed URLs are valid for 1 hour. Request a new template retrieval to get a fresh URL if expired.
ISO 8601 timestamp when the document_url will expire. After this time, the URL will return an access denied error. Fetch the template again to receive a fresh signed URL.
Number of pages in the document
x >= 1Hours until signing requests created from this template expire
x >= 1Number of credits consumed when a signing request is sent from this template. Minimum value is 1.
x >= 1Settings returned by the signing request list and detail endpoints. Templates use the TemplateSettings schema (no identity fields).
Template recipients (included in GET single template)
Template fields (included in GET single template)
Template last update timestamp