Document Platform

Pin and validate the uploaded file, then detect its fields; the version then waits for policy confirmation. Idempotent; a check or detection that failed or timed out returns 503 and can be retried.

post/customers/{customerId}/document-templates/{templateId}/versions/{versionId}/finalize

Request

  • Base URL: http://localhost:9000
  • URL: http://localhost:9000/customers/{customerId}/document-templates/{templateId}/versions/{versionId}/finalize
  • Auth: API key in header x-api-key

Path parameters

customerIdstring uuid required
templateIdstring uuid required
versionIdstring uuid required

Response

Default Response

templateIdstring uuid required
versionIdstring uuid required
state'pending' | 'validated' | 'rejected' | 'live' required
format'pptx' | 'docx' | 'xlsx' required
filenamestring required
sizeBytesinteger
rejectionReason'unsupported_format' | 'macro_enabled' | 'encrypted' | 'malformed' | 'external_relationship' | 'unsafe_xml' | 'too_large' | 'parse_limit' | 'unsupported_content' | 'no_fields' | 'too_many_fields' | 'repeat_marker'
policiesConfirmedAtstring date-time
createdAtstring date-time required
updatedAtstring date-time required

Changes