Workflows API

Create and manage workflows that route events from sources to destinations

https://catalyst-usw.agentuity.cloud

Authentication

All requests require a Bearer token. Pass your API or SDK key in the Authorization header.

HeaderValue
AuthorizationBearer YOUR_SDK_KEY

You can find your SDK key in the Agentuity Console under your project settings.


Workflow Management

List Workflows

List all workflows with optional filtering and pagination.

GET/workflow/list
https://catalyst-usw.agentuity.cloud/workflow/list

Parameters

query
NameTypeRequiredDescription
limitnumberNoMaximum number of workflows to return
offsetnumberNoPagination offset
statusstringNoFilter by status (enabled or disabled)
source_typestringNoFilter by source type (email, queue, webhook, or schedule)
filterstringNoFilter workflows by name

Response

Returns paginated list of workflows.

StatusDescription
200Workflows returned
401Unauthorized — invalid or missing Bearer token

Response Fields

FieldTypeDescription
workflowsobject[]Array of workflows
workflows[].idstringUnique identifier for the workflow (prefixed with wf_)
workflows[].created_atstringISO 8601 timestamp when the workflow was created
workflows[].updated_atstringISO 8601 timestamp when the workflow was last updated
workflows[].created_bystringID of the user who created the workflow
workflows[].org_idstringOrganization ID that owns the workflow
workflows[].namestringHuman-readable name for the workflow
workflows[].descriptionstring | nullOptional description of the workflow
workflows[].source_typestringThe type of source that triggers this workflow
workflows[].source_ref_idstringThe ID of the source (email address, queue, webhook, or schedule)
workflows[].source_configobject | nullOptional configuration for the source
workflows[].statusstringThe current status of the workflow
workflows[].graph_jsonobject | nullThe workflow graph definition (nodes and edges)
workflows[].execution_countnumberNumber of times this workflow has been executed (optional)
workflows[].linkstringLink to the workflow detail page (optional)
totalnumberTotal number of workflows

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/workflow/list' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Get Workflow

Get a specific workflow by ID.

GET/workflow/{workflowId}
https://catalyst-usw.agentuity.cloud/workflow/{workflowId}

Parameters

path
NameTypeRequiredDescription
workflowIdstringYesWorkflow ID (wf_ prefix)

Response

Returns the workflow object.

StatusDescription
200Workflow returned
401Unauthorized — invalid or missing Bearer token
404Workflow not found

Response Fields

FieldTypeDescription
workflowobjectThe requested workflow
workflow.idstringUnique identifier for the workflow (prefixed with wf_)
workflow.created_atstringISO 8601 timestamp when the workflow was created
workflow.updated_atstringISO 8601 timestamp when the workflow was last updated
workflow.created_bystringID of the user who created the workflow
workflow.org_idstringOrganization ID that owns the workflow
workflow.namestringHuman-readable name for the workflow
workflow.descriptionstring | nullOptional description of the workflow
workflow.source_typestringThe type of source that triggers this workflow
workflow.source_ref_idstringThe ID of the source (email address, queue, webhook, or schedule)
workflow.source_configobject | nullOptional configuration for the source
workflow.statusstringThe current status of the workflow
workflow.graph_jsonobject | nullThe workflow graph definition (nodes and edges)
workflow.execution_countnumberNumber of times this workflow has been executed
workflow.linkstringLink to the workflow detail page

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/workflow/wf_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Create Workflow

Create a new workflow with a source type and reference.

POST/workflow/create
https://catalyst-usw.agentuity.cloud/workflow/create

Request Body

Workflow creation payload.

FieldTypeDescription
namestringHuman-readable name for the workflow
descriptionstringOptional description of the workflow (optional)
source_typestringThe type of source that triggers this workflow
source_ref_idstringThe ID of the source
source_configobjectOptional source configuration (optional)

Response

Returns the created workflow.

StatusDescription
201Workflow created
401Unauthorized — invalid or missing Bearer token

Response Fields

FieldTypeDescription
workflowobjectThe newly created workflow
workflow.idstringUnique identifier for the workflow (prefixed with wf_)
workflow.created_atstringISO 8601 timestamp when the workflow was created
workflow.updated_atstringISO 8601 timestamp when the workflow was last updated
workflow.created_bystringID of the user who created the workflow
workflow.org_idstringOrganization ID that owns the workflow
workflow.namestringHuman-readable name for the workflow
workflow.descriptionstring | nullOptional description of the workflow
workflow.source_typestringThe type of source that triggers this workflow
workflow.source_ref_idstringThe ID of the source (email address, queue, webhook, or schedule)
workflow.source_configobject | nullOptional configuration for the source
workflow.statusstringThe current status of the workflow
workflow.graph_jsonobject | nullThe workflow graph definition (nodes and edges)
workflow.execution_countnumberNumber of times this workflow has been executed (optional)
workflow.linkstringLink to the workflow detail page (optional)

Example

curl -X POST 'https://catalyst-usw.agentuity.cloud/workflow/create' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "GitHub to Slack",
  "source_type": "webhook",
  "source_ref_id": "wh_abc123"
}'

Update Workflow

Update a workflow's name, description, or status.

PATCH/workflow/{workflowId}
https://catalyst-usw.agentuity.cloud/workflow/{workflowId}

Parameters

path
NameTypeRequiredDescription
workflowIdstringYesWorkflow ID

Request Body

Fields to update.

FieldTypeDescription
namestringNew name for the workflow (optional)
descriptionstring | nullNew description for the workflow (optional)
statusstringNew status for the workflow (optional)

Response

Returns the updated workflow.

StatusDescription
200Workflow updated
401Unauthorized — invalid or missing Bearer token
404Workflow not found

Response Fields

FieldTypeDescription
workflowobjectThe updated workflow
workflow.idstringUnique identifier for the workflow (prefixed with wf_)
workflow.created_atstringISO 8601 timestamp when the workflow was created
workflow.updated_atstringISO 8601 timestamp when the workflow was last updated
workflow.created_bystringID of the user who created the workflow
workflow.org_idstringOrganization ID that owns the workflow
workflow.namestringHuman-readable name for the workflow
workflow.descriptionstring | nullOptional description of the workflow
workflow.source_typestringThe type of source that triggers this workflow
workflow.source_ref_idstringThe ID of the source (email address, queue, webhook, or schedule)
workflow.source_configobject | nullOptional configuration for the source
workflow.statusstringThe current status of the workflow
workflow.graph_jsonobject | nullThe workflow graph definition (nodes and edges)
workflow.execution_countnumberNumber of times this workflow has been executed
workflow.linkstringLink to the workflow detail page

Example

curl -X PATCH 'https://catalyst-usw.agentuity.cloud/workflow/wf_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Renamed Workflow",
  "status": "disabled"
}'

Update Workflow Graph

Update the workflow graph definition (nodes and edges).

PUT/workflow/graph/{workflowId}
https://catalyst-usw.agentuity.cloud/workflow/graph/{workflowId}

Parameters

path
NameTypeRequiredDescription
workflowIdstringYesWorkflow ID

Request Body

Graph definition with nodes and edges.

FieldTypeDescription
nodesobject[]Array of workflow nodes
nodes[].idstring
nodes[].typestring (optional)
nodes[].positionobject (optional)
nodes[].position.xnumber
nodes[].position.ynumber
nodes[].dataany (optional)
edgesobject[]Array of workflow edges
edges[].idstring
edges[].sourcestring
edges[].targetstring
edges[].sourceHandlestring (optional)
edges[].targetHandlestring (optional)

Response

Returns the updated workflow.

StatusDescription
200Workflow graph updated
401Unauthorized — invalid or missing Bearer token
404Workflow not found

Response Fields

FieldTypeDescription
workflowobjectThe updated workflow
workflow.idstringUnique identifier for the workflow (prefixed with wf_)
workflow.created_atstringISO 8601 timestamp when the workflow was created
workflow.updated_atstringISO 8601 timestamp when the workflow was last updated
workflow.created_bystringID of the user who created the workflow
workflow.org_idstringOrganization ID that owns the workflow
workflow.namestringHuman-readable name for the workflow
workflow.descriptionstring | nullOptional description of the workflow
workflow.source_typestringThe type of source that triggers this workflow
workflow.source_ref_idstringThe ID of the source (email address, queue, webhook, or schedule)
workflow.source_configobject | nullOptional configuration for the source
workflow.statusstringThe current status of the workflow
workflow.graph_jsonobject | nullThe workflow graph definition (nodes and edges)
workflow.execution_countnumberNumber of times this workflow has been executed
workflow.linkstringLink to the workflow detail page

Example

curl -X PUT 'https://catalyst-usw.agentuity.cloud/workflow/graph/wf_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "graph_json": {
    "nodes": [
      {
        "id": "n1",
        "type": "filter"
      },
      {
        "id": "n2",
        "type": "action"
      }
    ],
    "edges": [
      {
        "id": "e1",
        "source": "n1",
        "target": "n2"
      }
    ]
  }
}'

Delete Workflow

Delete a workflow and all associated executions and deliveries.

DELETE/workflow/{workflowId}
https://catalyst-usw.agentuity.cloud/workflow/{workflowId}

Parameters

path
NameTypeRequiredDescription
workflowIdstringYesWorkflow ID

Response

Empty response on success.

StatusDescription
204Workflow deleted
401Unauthorized — invalid or missing Bearer token
404Workflow not found

Example

curl -X DELETE 'https://catalyst-usw.agentuity.cloud/workflow/wf_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Testing

Test Workflow

Test a workflow with a sample payload.

POST/workflow/test/{workflowId}
https://catalyst-usw.agentuity.cloud/workflow/test/{workflowId}

Parameters

path
NameTypeRequiredDescription
workflowIdstringYesWorkflow ID

Request Body

Test payload to send through the workflow.

FieldTypeDescription
payloadanyTest payload to send through the workflow

Response

Returns the test execution result.

StatusDescription
200Test completed
401Unauthorized — invalid or missing Bearer token
404Workflow not found

Response Fields

FieldTypeDescription
execution_idstringID of the test execution
statusstringStatus of the test execution
stepsobject[]Individual step results (optional)
steps[].node_idstring
steps[].node_typestring
steps[].statusstring
steps[].outputany (optional)
steps[].errorstring (optional)
errorstringError message if test failed (optional)

Example

curl -X POST 'https://catalyst-usw.agentuity.cloud/workflow/test/wf_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "payload": {
    "event": "test",
    "data": {
      "key": "value"
    }
  }
}'

Analytics

Get Workflow Activity

Get workflow activity statistics for the organization.

GET/workflow/activity
https://catalyst-usw.agentuity.cloud/workflow/activity

Parameters

query
NameTypeRequiredDescription
daysnumberNoNumber of days to look back

Response

Returns aggregate workflow activity statistics.

StatusDescription
200Activity returned
401Unauthorized — invalid or missing Bearer token

Response Fields

FieldTypeDescription
total_workflowsnumberTotal number of workflows
enabled_workflowsnumberNumber of enabled workflows
disabled_workflowsnumberNumber of disabled workflows
total_executionsnumberTotal number of executions
succeeded_executionsnumberNumber of successful executions
failed_executionsnumberNumber of failed executions
last_activity_atstring | nullWhen the last activity occurred

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/workflow/activity' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Executions

List Workflow Executions

List execution records for a specific workflow.

GET/workflow/executions/{workflowId}
https://catalyst-usw.agentuity.cloud/workflow/executions/{workflowId}

Parameters

path
NameTypeRequiredDescription
workflowIdstringYesWorkflow ID

Response

Returns list of executions.

StatusDescription
200Executions returned
401Unauthorized — invalid or missing Bearer token
404Workflow not found

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/workflow/executions/wf_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Deliveries

List Workflow Deliveries

List delivery records for a specific execution.

GET/workflow/deliveries/{executionId}
https://catalyst-usw.agentuity.cloud/workflow/deliveries/{executionId}

Parameters

path
NameTypeRequiredDescription
executionIdstringYesExecution ID

Response

Returns list of deliveries.

StatusDescription
200Deliveries returned
401Unauthorized — invalid or missing Bearer token
404Execution not found

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/workflow/deliveries/exec_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Analytics

Get Recent Payload

Get the most recent payload received by a workflow.

GET/workflow/recent-payload/{workflowId}
https://catalyst-usw.agentuity.cloud/workflow/recent-payload/{workflowId}

Parameters

path
NameTypeRequiredDescription
workflowIdstringYesWorkflow ID

Response

Returns the most recent payload data.

StatusDescription
200Payload returned
401Unauthorized — invalid or missing Bearer token
404Workflow not found or no recent payload

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/workflow/recent-payload/wf_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'