Add workflow
POST/workflows
Creates a new Workflow; available as an Add-On Module
Request
Query Parameters
Site Identifier
- application/json
Body
required
Array [
Array [
]
]
Workflow name
Workflow description
Status of the Workflow
Possible values: [ACTIVE
, INACTIVE
]
steps
object[]
required
Workflow Steps
Workflow Step Identifier
action
object
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
queue
object
Queue Identifier
decisions
object[]
Workflow Decisions
Type of Workflow Step Decision
Possible values: [APPROVE
, REJECT
]
Workflow Step to move to
Responses
- 201
- 400
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
Workflow Identifier
{
"workflowId": "string"
}
400 BAD REQUEST
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 [
]
errors
object[]
List of errors
Error Key
Error Message
{
"errors": [
{
"key": "string",
"error": "string"
}
]
}