Skip to main content

Get workflow

GET 

/workflows/:workflowId

Get a workflow; available as an Add-On Module

Request

Path Parameters

    workflowId stringrequired

    Workflow Identifier

Query Parameters

    siteId string

    Site Identifier

Responses

200 OK

Response Headers

  • Access-Control-Allow-Origin

    string

  • Access-Control-Allow-Methods

    string

  • Access-Control-Allow-Headers

    string

Schema

    name string

    Workflow name

    description string

    Workflow description

    inUse boolean

    Whether the Workflow is in use

    status WorkflowStatus (string)

    Status of the Workflow

    Possible values: [ACTIVE, INACTIVE]

    steps

    object[]

    Workflow steps

  • Array [

  • stepId string

    Workflow Step Identifier

    description string

    Workflow Step description

    action

    object

    status DocumentActionStatus (string)

    Status of the Document Action

    Possible values: [COMPLETE, ASYNC_COMPLETE, FAILED, IN_QUEUE, PENDING, RUNNING, SKIPPED, FAILED_RETRY, MAX_RETRIES_REACHED, WAITING_FOR_RETRY]

    type DocumentActionType (string)

    Type of the Document Action

    Possible values: [ANTIVIRUS, DOCUMENTTAGGING, FULLTEXT, MOVE, DELETE, CHECKSUM, NOTIFICATION, OCR, QUEUE, WEBHOOK, IDP, PUBLISH, PDFEXPORT, EVENTBRIDGE, RESIZE, LLMPROMPT, DATA_CLASSIFICATION, MALWARE_SCAN]

    retryCount number

    The number of times this action has already been attempted

    maxRetries number

    The maximum number of retry attempts allowed for this action

    queueId string

    Queue Id

    workflowId string

    Workflow Id

    workflowStepId string

    Workflow Step Id

    message string

    Action message information

    userId string

    User who requested the Action

    insertedDate string

    Inserted Timestamp

    startDate string

    Started Timestamp

    completedDate string

    Completed Timestamp

    parameters

    object

    Action parameters

    metadata

    object

    Action metadata

    property name* string

    queue

    object

    queueId string

    Queue Id

    approvalGroups string[]

    mappings

    object[]

  • Array [

  • mappingId stringrequired

    Mapping Identifier

  • ]

  • decision

    object

    conditions

    object[]

    Workflow Step Conditions

  • Array [

  • all

    object[]

    Workflow Step Condition Criteria

  • Array [

  • source

    object

    required

    Defines the document-derived source value to evaluate for a workflow condition criterion.

    The source identifies where the value comes from before applying the operator. Supported sources include:

    • a document attribute identified by attributeKey

    • a comparison between a document attribute value and another attribute-derived value

    • the document content type

    • the document path

    oneOf

    Uses a document attribute as the source value for a workflow condition criterion.

    The attribute is selected using attributeKey.

    attributeKey stringrequired

    Document attribute key

    operator WorkflowStepConditionOperator (string)required

    Comparison operator used to evaluate a workflow condition criterion.

    Values:

    • EQ - Equals
    • NEQ - Not equals
    • CONTAINS - Contains substring or matching value
    • NOT_CONTAINS - Does not contain substring or matching value
    • STARTS_WITH - Starts with value
    • ENDS_WITH - Ends with value
    • GT - Greater than
    • GTE - Greater than or equal
    • LT - Less than
    • LTE - Less than or equal
    • EXISTS - Field exists
    • NOT_EXISTS - Field does not exist
    • IN - Matches one of the provided values
    • NOT_IN - Does not match any of the provided values
    • IS_EMPTY - Source value is empty
    • IS_NOT_EMPTY - Source value is not empty

    Possible values: [EQ, NEQ, CONTAINS, NOT_CONTAINS, STARTS_WITH, ENDS_WITH, GT, GTE, LT, LTE, EXISTS, NOT_EXISTS, IN, NOT_IN, IS_EMPTY, IS_NOT_EMPTY]

    stringValue string

    String comparison value

    numberValue number

    Numeric comparison value

    booleanValue boolean

    Boolean comparison value

    stringValues string[]

    String values used for IN or NOT_IN comparisons

  • ]

  • any

    object[]

    Workflow Step Condition Criteria

  • Array [

  • source

    object

    required

    Defines the document-derived source value to evaluate for a workflow condition criterion.

    The source identifies where the value comes from before applying the operator. Supported sources include:

    • a document attribute identified by attributeKey

    • a comparison between a document attribute value and another attribute-derived value

    • the document content type

    • the document path

    oneOf

    Uses a document attribute as the source value for a workflow condition criterion.

    The attribute is selected using attributeKey.

    attributeKey stringrequired

    Document attribute key

    operator WorkflowStepConditionOperator (string)required

    Comparison operator used to evaluate a workflow condition criterion.

    Values:

    • EQ - Equals
    • NEQ - Not equals
    • CONTAINS - Contains substring or matching value
    • NOT_CONTAINS - Does not contain substring or matching value
    • STARTS_WITH - Starts with value
    • ENDS_WITH - Ends with value
    • GT - Greater than
    • GTE - Greater than or equal
    • LT - Less than
    • LTE - Less than or equal
    • EXISTS - Field exists
    • NOT_EXISTS - Field does not exist
    • IN - Matches one of the provided values
    • NOT_IN - Does not match any of the provided values
    • IS_EMPTY - Source value is empty
    • IS_NOT_EMPTY - Source value is not empty

    Possible values: [EQ, NEQ, CONTAINS, NOT_CONTAINS, STARTS_WITH, ENDS_WITH, GT, GTE, LT, LTE, EXISTS, NOT_EXISTS, IN, NOT_IN, IS_EMPTY, IS_NOT_EMPTY]

    stringValue string

    String comparison value

    numberValue number

    Numeric comparison value

    booleanValue boolean

    Boolean comparison value

    stringValues string[]

    String values used for IN or NOT_IN comparisons

  • ]

  • transition

    object

    required

    type WorkflowStepTransitionType (string)required

    Defines the outcome of a workflow step transition.

    A transition determines what happens after a workflow step finishes evaluating its conditions, decisions, or actions.

    Depending on the transition type, the workflow may:

    • Move to another workflow step
    • Complete successfully
    • Be rejected
    • Be cancelled
    • Remain on the current step

    Some transition types require additional properties. For example, when the type is STEP, a target step identifier must be provided in the transition object.

    Possible values: [STEP, RETRY, COMPLETE]

    stepId string

    Target workflow step

  • ]

  • defaultTransition

    object

    type WorkflowStepTransitionType (string)required

    Defines the outcome of a workflow step transition.

    A transition determines what happens after a workflow step finishes evaluating its conditions, decisions, or actions.

    Depending on the transition type, the workflow may:

    • Move to another workflow step
    • Complete successfully
    • Be rejected
    • Be cancelled
    • Remain on the current step

    Some transition types require additional properties. For example, when the type is STEP, a target step identifier must be provided in the transition object.

    Possible values: [STEP, RETRY, COMPLETE]

    stepId string

    Target workflow step

    decisions

    object[]

    Workflow Decisions

  • Array [

  • type WorkflowStepDecisionType (string)

    Type of Workflow Step Decision

    Possible values: [APPROVE, REJECT]

    nextStepId string

    Workflow Step to move to

  • ]

  • ]

Loading...