Create document
POST /v2/document
Creates a new document based on the provided data, then returns the created document.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”API Key
API Secret
Request Body required
Section titled “Request Body required ”object
Provide a reference Id if you need to query this document by an external identifier linked to a consuming API or system. This property has been deprecated with the release of the Metadata service which can be used to store additional information about the document.
b7e6a1c2-3f4d-4e2a-9c1a-2b3c4d5e6f7a
The MIME type of the document (e.g., application/pdf, image/jpeg)
application/pdf
The Document Name for display purposes
Invoice Q1 2024
The Document Type to help with categorisation and search
invoice
Unique identifier to identify the batch process for a group of documents. This property has been deprecated due to the change from bulk upload processing to asynchronous processing.
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
It sets the visibility of the document and its data so unauthenticated users can view it
Origin of the document upload, used to identify which system or service the document was uploaded from
PAYMENTS
The template id from your template library (see your templates in /document/template)
d2c3b4a1-4e2a-9c1a-2b3c-4d5e6f7a8b9c
The group id to add the document to (see your groups in /document/group)
e3f4d5c6-7a8b-4e2a-9c1a-2b3c4d5e6f7a
A prompt array of strings
object
A prompt Id
a1b2c3d4-5678-4e2a-9c1a-2b3c4d5e6f7a
A prompt name
Summary
A field type
text
A format
string
A description
Whats the summary of the document?
An item type
string
[ { "id": "f52b1f9e-b9a6-4248-afc5-d3ae358e723a", "name": "Total", "fieldType": "number", "format": "currency", "description": "The total amount of the document" }]
This property has been deprecated due to the change from bulk upload processing to asynchronous processing.
c1a2b3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
The Ocr Provider used to extract data from the document
GOOGLE_DOCUMENT_AI
The LLM model used to extract data from the document
GPT_4
Responses
Section titled “ Responses ”The resource has been successfully created.
object
A document Id
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
A reference Id
b7e6a1c2-3f4d-4e2a-9c1a-2b3c4d5e6f7a
A document extension
application/pdf
A document name
Invoice Q1 2024
A document type
invoice
An upload batch Id
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
Set the visibility of the document and its data
The origin of the document upload
The group id to add the document to
e3f4d5c6-7a8b-4e2a-9c1a-2b3c4d5e6f7a
A prompt array
object
A prompt Id
a1b2c3d4-5678-4e2a-9c1a-2b3c4d5e6f7a
A prompt name
Summary
A field type
text
A format
string
A description
Whats the summary of the document?
An item type
string
[ { "id": "1", "name": "Total", "fieldType": "number", "format": "currency", "description": "The total amount of the document" }]
The webhook id to send the document to
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
The bulk document id to add the document to
f52b1f9e-b9a6-4248-afc5-d3ae358e723a