v1

latestOpenAPI 3.1.02026-07-2483219318.4 KB
Documents

Create document

This endpoint creates a new document record in a pending state. Each document represents a single file, which needs to be uploaded shortly after document creation.

If the document file is not uploaded before the expires_at timestamp included in the response, the record will be automatically deleted.

The document file can be uploaded by making a PUT request to the upload_url provided in the response. Document uploads must meet the following criteria:

  • Files have a maximum size of 50MB

  • Files must have a content-type of 'application/pdf'

post/v1/applications/{applicationId}/documents

Path parameters

applicationIdstring required
Example:application_tz4a98xxat96iws9zmbrgj3a

Request body

namestring required

The filename of this document.

Response

Success

_idstring required
expires_atstring date-time required
upload_urlstring uri required

Example response

{
  "_id": "doc_tz4a98xxat96iws9zmbrgj3a"
}