Public add document
POST/public/documents
Allow unauthenticated creation of new documents; must be enabled during installation (disabled by default)
See POST /documents/{documentId}/tags for adding tags to document schema
See POST /documents/{documentId}/actions for adding actions to document schema
Request
Query Parameters
Site Identifier
- application/json
Body
required
Array [
]
Array [
]
Array [
]
Array [
- AddDocumentAttributeStandard
- AddDocumentAttributeClassification
- AddDocumentAttributeRelationship
]
Array [
Array [
]
Array [
]
]
optional Document Identifier (Version 4 UUID), if skipped one will be assigned
Path or Name of document
The type of checksum to use for file validation
Possible values: [SHA1
, SHA256
]
The checksum value to validate the file against
Document Content Width property
Document Content Height property
Path or Name of deep link
Document media type
Is the content Base64-encoded?
Document content
tags
object[]
List of document tags
Tag key
Tag value
Tag values
metadata
object[]
List of document Metadata
Metadata key
Metadata value
Metadata 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
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
]
documents
object[]
List of child documents
Path or Name of document
Document Content Width property
Document Content Height property
Path or Name of deep link
Document Content-Type
The type of checksum to use for file validation
Possible values: [SHA1
, SHA256
]
The checksum value to validate the file against
Is the content Base64-encoded?
Document content
tags
object[]
List of document tags
Tag key
Tag value
Tag values
metadata
object[]
List of document Metadata
Metadata key
Metadata value
Metadata values
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
Array [
]
Document Identifier
Site Identifier
Url to upload document to
headers
object
documents
object[]
List of child documents
Document Identifier
Url to upload document to
headers
object
{
"documentId": "string",
"siteId": "string",
"uploadUrl": "string",
"headers": {},
"documents": [
{
"documentId": "string",
"uploadUrl": "string",
"headers": {}
}
]
}