Skip to navigation

Get workflow instance

View as Markdown

This operation retrieves a single Workflow Builder workflow instance by its unique identifier (id). It returns the primary details of the workflow instance, including its name, status, starting information, and other metadata.

The response provides key details that help users understand the current state of the workflow instance, when it was started, and who initiated it. Additional metadata is included to support auditing and reporting within the system.

Use Cases:

  • Getting the details of a specific workflow instance for further processing or review
  • Monitoring the status of a running workflow instance to determine completion or cancellation
  • Accessing metadata for auditing, logging, or reporting on a single workflow instance

Key Features:

  • Single Workflow Instance: Provides direct access to a specific workflow instance by id
  • Detailed Status Information: Includes the workflow’s start and end times, status, and other lifecycle timestamps
  • Metadata for Tracking: Useful metadata like who initiated the workflow (started_by) and versioning details
  • Future-Proof: Designed to be extensible if additional fields or nested information are required over time

Authentication

AuthorizationBearer

Path parameters

accountIdstringRequiredformat: "^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$"
The unique identifier of the account.
workflowIdstringRequiredformat: "^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$"

A universally unique identifier (UUID) in standard 8-4-4-4-12 format.

instanceIdstringRequiredformat: "uuid"
Unique identifier for the workflow instance

Response

Successful response containing the workflow instance details
idstringOptionalformat: "uuid"
Unique identifier for the workflow instance
namestringOptional

Human-readable name for the workflow instance

workflow_statusstringOptional

Current status of the workflow (e.g. In Progress, Completed, Canceled)

template_idstringOptionalformat: "uuid"
Identifier linking this instance to a workflow template
account_idstringOptionalformat: "uuid"
Account under which this workflow instance was initiated
started_atdatetimeOptional
Date and time when the workflow was started
started_bystringOptionalformat: "uuid"
User or system identifier that started this workflow
started_by_namestringOptional
Display name of the user who started this workflow
started_by_rolestringOptional

Role of the user who started this workflow (e.g. Preparer)

ended_atdatetime or nullOptional
Date and time when the workflow completed
expires_atdatetime or nullOptional
Date and time after which the workflow expires
last_modified_atdatetimeOptional
Date and time when the workflow instance was last modified
canceled_atdatetime or nullOptional

Date and time when the workflow was canceled (if applicable)

canceled_bystring or nullOptional

User or system identifier that canceled this workflow (if applicable)

trigger_inputsstring or double or boolean or map from strings to any or list of anyOptional

A key-value pair where the key is the field_name defined in the trigger_input_schema of the workflow definition, and the value is the actual input data. Supported types include string, number, boolean, object, or array.

total_stepsintegerOptional
Total number of steps configured in the workflow
last_completed_stepintegerOptional
The index of the most recently completed step
last_completed_step_namestring or nullOptional
The name of the most recently completed step
tagslist of stringsOptional
Custom tags for organization or filtering
metadataobjectOptional
Additional metadata related to this workflow instance

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error