Add large document
POST/documents/upload
Returns a URL that can be used to upload document content and create a new document, while allowing metadata to also be sent; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB. The POST endpoint allow the adding of document metadata at the same time as the document is created.
Request
Query Parameters
Site Identifier
Indicates the size of the entity-body
Indicates the number of hours request is valid for
Share Identifier
- application/json
Body
required
Array [
- AddDocumentAttributeStandard
- AddDocumentAttributeClassification
- AddDocumentAttributeRelationship
]
Array [
]
Array [
]
optional Document Identifier, if skipped one will be assigned
Path or Name of document
Document media type
Document Content Width property
Document Content Height property
Path or Name of deep link
The type of checksum to use for file validation
Possible values: [SHA1
, SHA256
]
The checksum value to validate the file against
attributes
object[]
List of Attributes to add to document
oneOf
Document Attribute
Attribute key
Attribute with string value
Attribute with string values
Attribute with number value
Attribute with number values
Attribute with boolean value
Document Classification
Classification Identifier
Document Relationship
Relationship To Document Identifier
Document Relationship Type
Possible values: [PRIMARY
, ATTACHMENT
, APPENDIX
, SUPPLEMENT
, ASSOCIATED
, RENDITION
]
Document Relationship Type
Possible values: [PRIMARY
, ATTACHMENT
, APPENDIX
, SUPPLEMENT
, ASSOCIATED
, RENDITION
]
tags
object[]
List of document tags
Tag key
Tag value
Tag values
actions
object[]
List of Actions
Type of the Document Action
Possible values: [ANTIVIRUS
, DOCUMENTTAGGING
, FULLTEXT
, NOTIFICATION
, OCR
, QUEUE
, WEBHOOK
, IDP
, PUBLISH
, PDFEXPORT
, EVENTBRIDGE
]
parameters
object
OCR: Parse types - TEXT, FORMS, TABLES
Type of OCR Engine to use
Possible values: [TESSERACT
, TEXTRACT
]
OCR Engine output format (textract table only)
Possible values: [CSV
]
Number of pages to OCR (from start) (-1 all)
OCR: For the rewriting of the PDF document, converting any image text to searchable text
Webhook: Callback URL
Fulltext: Maximum number of characters (-1 unlimited, Typesense defaults to 2048 characters)
DocumentTagging: Engine to use for document tagging generation
Possible values: [chatgpt
]
Notification Type
Possible values: [email
]
Who to carbon copy on the notification to (comma-delimited list)
Who to blind carbon copy on the notification to (comma-delimited list)
Subject of the notification
Text of the notification
Html of the notification
DocumentTagging: Comma-deliminted list of keywords to generate tags for
Id of Mapping
The name or ARN of the event bus to receive the event
Id of Queue
Responses
- 201
201 CREATED
Response Headers
Access-Control-Allow-Origin
string
Access-Control-Allow-Methods
string
Access-Control-Allow-Headers
string
- application/json
- Schema
- Example (from schema)
Schema
Document Identifier
Document content url
headers
object
{
"documentId": "string",
"url": "string",
"headers": {}
}