v1

latestSwagger 2.02026-07-134026156.7 KB
Templates

Create a new PDF template from a cached S3 file upload

Creates a new PDF template from a file previously uploaded to S3 using a presigned URL. This two-step process allows for more reliable large file uploads by first uploading the file to S3, then creating the template using the cached upload ID.

post/templates?endpoint_variant=create_template_from_cached_upload

Request body

Example request

{
  "template": {
    "name": "Test Template Presigned",
    "document": {
      "id": "original-0000000000",
      "storage": "cache",
      "metadata": {
        "filename": "fw8ben.pdf",
        "size": 62553,
        "mime_type": "application/pdf",
        "s3_bucket": null,
        "s3_region": null,
        "md5_hash": "ca6fdfed355b9e89f9a94ee54688a231"
      }
    }
  }
}

Response

returns a pending template

add_data_request_submission_id_footersboolean required
allow_additional_propertiesboolean required
descriptionstring nullable required
document_filenamestring nullable required
document_md5string nullable required
document_parse_errorboolean required
document_processedboolean required
document_state'pending' | 'processed' | 'password_required' | 'malformed_pdf' | 'unknown_error' required
document_urlstring nullable required
editable_submissionsboolean required
embed_domainsstring nullable required
embed_edit_allow_settingsboolean required
embed_edit_allow_versioningboolean required
embed_edit_allow_document_replacementboolean required
encrypt_pdfs_passwordstring nullable required
encrypt_pdfsboolean required
expiration_intervalstring required
expire_afterinteger required
expire_submissionsboolean required
external_predefined_fields_template_idstring nullable required
external_predefined_fields_template_namestring nullable required
first_templateboolean required
idstring nullable required
lockedboolean required
merge_audit_trail_pdfboolean required
namestring nullable required
page_countinteger required
parent_folder_idstring nullable required
pathstring nullable required
permanent_document_urlstring nullable required
public_submissionsboolean required
public_web_formboolean required
redirect_urlstring nullable required
slack_webhook_urlstring nullable required
template_type'pdf' | 'html' required
updated_atstring nullable required
version_published_atstring nullable required
versionstring nullable required
webhook_urlstring nullable required
embed_edit_tokenstring nullable
demoboolean required
latest_versionstring nullable required
last_changed_atstring nullable required
last_changed_by_type'user' | 'api' | 'external_user' nullable required
last_changed_by_idstring nullable required
last_changed_by_external_namestring nullable required
last_changed_by_external_emailstring nullable required
last_changed_by_external_idstring nullable required