read_workflows
Read the workspace's automation: what workflows exist and what they trigger on, what their runs did step by step, which inbound webhook attempts arrived, what alerts are open, what is running on a conversation, and the option lists a graph can reference.
# MCP tool reference
1 callable tools.
Use tools/call at https://mcp.schedulerzero.com/mcp with the exact tool name and arguments below. The /tools/ paths in this view are documentation identifiers, not HTTP endpoints. Request execution is disabled for this reference.
Inputs are shown for personal API keys (bound) and for OAuth/delegated agents. Output schemas describe MCP structuredContent: native objects pass through; arrays, scalars and null use a data wrapper. Text content retains the native JSON result.
[Connect a client](/mcp/connect) · [Authentication and authorization](/authentication) · [Generated auth guide](/auth.md) · [Download tool catalog](/mcp-catalog.json) · [Agent documentation](/llms.txt)
## read_workflows
Read the workspace's automation: what workflows exist and what they trigger on, what their runs did step by step, which inbound webhook attempts arrived, what alerts are open, what is running on a conversation, and the option lists a graph can reference.
Use to ground any claim about automation — whether a workflow is live, why a run stopped, whether a webhook ever arrived, or which call list, sequence, inbox, or destination workflow a block could name. `simulate` replays a graph against a real past reply without executing anything.
Node outputs are withheld when the caller lacks the permission for the data's SOURCE, so an execution can appear with an empty result; that is authorization, not an error. An option list with `authorized: false` is a missing permission, not an empty workspace. This never changes a graph, starts a run, or answers a pending AI draft.
Scopes: workflow:read
Risk: read; confirmation: none; idempotency: none.
### Input schema (personal API key)
```json
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"scope": {
"type": "string",
"enum": [
"list",
"workflow",
"runs",
"trigger_logs",
"alerts",
"thread_automation",
"call_list_options",
"sequence_options",
"inbox_scope_options",
"enrollment_targets",
"test_replies",
"simulate"
]
},
"workflowId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"threadId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"runs": {
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50
},
"runId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"patternProperties": {
"^(?!(?:limit|runId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"limit",
"runId"
]
}
},
"triggerLogs": {
"type": "object",
"properties": {
"cursor": {
"$ref": "#/$defs/Cursor"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50
},
"outcome": {
"type": "string",
"enum": [
"received",
"accepted",
"rejected",
"sample",
"ignored",
"duplicate",
"error"
]
}
},
"patternProperties": {
"^(?!(?:cursor|limit|outcome)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"cursor",
"limit",
"outcome"
]
}
},
"testReplies": {
"type": "object",
"properties": {
"workflowId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"search": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"workflowId"
],
"patternProperties": {
"^(?!(?:workflowId|search)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"workflowId",
"search"
]
}
},
"simulate": {
"type": "object",
"properties": {
"messageId": {
"$ref": "#/$defs/OpaqueId"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"graph": {
"type": "object",
"properties": {
"schemaVersion": {
"anyOf": [
{
"type": "number",
"enum": [
1
]
}
]
},
"nodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"type": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
},
"position": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"required": [
"x",
"y"
],
"patternProperties": {
"^(?!(?:x|y)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"x",
"y"
]
}
},
"data": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"id",
"type",
"position",
"data"
],
"patternProperties": {
"^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"type",
"position",
"data"
]
}
},
"maxItems": 200
},
"edges": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"source": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"target": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"sourceHandle": {
"anyOf": [
{
"type": "string",
"enum": [
"yes",
"no"
]
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"source",
"target"
],
"patternProperties": {
"^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"source",
"target",
"sourceHandle"
]
}
},
"maxItems": 400
}
},
"required": [
"schemaVersion",
"nodes",
"edges"
],
"patternProperties": {
"^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"schemaVersion",
"nodes",
"edges"
]
}
}
},
"required": [
"messageId",
"name",
"graph"
],
"patternProperties": {
"^(?!(?:messageId|name|graph)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"messageId",
"name",
"graph"
]
}
},
"enrollmentTargets": {
"type": "object",
"properties": {
"excludeId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"patternProperties": {
"^(?!(?:excludeId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"excludeId"
]
}
]
}
}
},
"required": [
"workspaceId",
"scope"
],
"patternProperties": {
"^(?!(?:workspaceId|scope|workflowId|threadId|runs|triggerLogs|testReplies|simulate|enrollmentTargets)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"workspaceId",
"scope",
"workflowId",
"threadId",
"runs",
"triggerLogs",
"testReplies",
"simulate",
"enrollmentTargets"
]
},
"$defs": {
"Cursor": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"OpaqueId": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"Union_": {
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/Union_"
}
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
]
}
}
}
```
### Input schema (OAuth / delegated agent)
```json
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"scope": {
"type": "string",
"enum": [
"list",
"workflow",
"runs",
"trigger_logs",
"alerts",
"thread_automation",
"call_list_options",
"sequence_options",
"inbox_scope_options",
"enrollment_targets",
"test_replies",
"simulate"
]
},
"workflowId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"threadId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"runs": {
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50
},
"runId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"patternProperties": {
"^(?!(?:limit|runId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"limit",
"runId"
]
}
},
"triggerLogs": {
"type": "object",
"properties": {
"cursor": {
"$ref": "#/$defs/Cursor"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50
},
"outcome": {
"type": "string",
"enum": [
"received",
"accepted",
"rejected",
"sample",
"ignored",
"duplicate",
"error"
]
}
},
"patternProperties": {
"^(?!(?:cursor|limit|outcome)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"cursor",
"limit",
"outcome"
]
}
},
"testReplies": {
"type": "object",
"properties": {
"workflowId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"search": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"workflowId"
],
"patternProperties": {
"^(?!(?:workflowId|search)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"workflowId",
"search"
]
}
},
"simulate": {
"type": "object",
"properties": {
"messageId": {
"$ref": "#/$defs/OpaqueId"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"graph": {
"type": "object",
"properties": {
"schemaVersion": {
"anyOf": [
{
"type": "number",
"enum": [
1
]
}
]
},
"nodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"type": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
},
"position": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"required": [
"x",
"y"
],
"patternProperties": {
"^(?!(?:x|y)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"x",
"y"
]
}
},
"data": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"id",
"type",
"position",
"data"
],
"patternProperties": {
"^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"type",
"position",
"data"
]
}
},
"maxItems": 200
},
"edges": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"source": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"target": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"sourceHandle": {
"anyOf": [
{
"type": "string",
"enum": [
"yes",
"no"
]
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"source",
"target"
],
"patternProperties": {
"^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"source",
"target",
"sourceHandle"
]
}
},
"maxItems": 400
}
},
"required": [
"schemaVersion",
"nodes",
"edges"
],
"patternProperties": {
"^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"schemaVersion",
"nodes",
"edges"
]
}
}
},
"required": [
"messageId",
"name",
"graph"
],
"patternProperties": {
"^(?!(?:messageId|name|graph)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"messageId",
"name",
"graph"
]
}
},
"enrollmentTargets": {
"type": "object",
"properties": {
"excludeId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"patternProperties": {
"^(?!(?:excludeId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"excludeId"
]
}
]
}
}
},
"required": [
"workspaceId",
"scope"
],
"patternProperties": {
"^(?!(?:workspaceId|scope|workflowId|threadId|runs|triggerLogs|testReplies|simulate|enrollmentTargets)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"workspaceId",
"scope",
"workflowId",
"threadId",
"runs",
"triggerLogs",
"testReplies",
"simulate",
"enrollmentTargets"
]
},
"$defs": {
"Cursor": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"OpaqueId": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"Union_": {
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/Union_"
}
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
]
}
}
}
```
### Output schema (structuredContent)
```json
{
"$defs": {
"WorkflowVersionId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"UtcDateTimeEncoded": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
},
"Union_": {
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/Union_"
}
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
]
},
"Description": {
"type": "string",
"minLength": 1,
"maxLength": 4096
},
"ShortText": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"WorkflowNodeExecutionId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"OpaqueId": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"WorkflowFollowUpId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"EmailAddress": {
"type": "string",
"minLength": 3,
"maxLength": 320,
"pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
},
"WorkflowFollowUpDraftId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"WorkflowTriggerLogId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"Cursor": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"WorkflowAlertId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"CallListId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"HexColor": {
"type": "string",
"pattern": "^#[0-9A-Fa-f]{6}$"
},
"LeadStoredText": {
"type": "string",
"maxLength": 65536
}
},
"type": "object",
"anyOf": [
{
"allOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"status": {
"type": "string",
"enum": [
"draft",
"active",
"paused",
"deleting"
]
},
"publishedVersionId": {
"anyOf": [
{
"$ref": "#/$defs/WorkflowVersionId"
},
{
"type": "null"
}
]
},
"triggerType": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
},
{
"type": "null"
}
]
},
"alertCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"name",
"status",
"publishedVersionId",
"triggerType",
"alertCount",
"createdAt",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|name|status|publishedVersionId|triggerType|alertCount|createdAt|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"status",
"publishedVersionId",
"triggerType",
"alertCount",
"createdAt",
"updatedAt"
]
}
}
}
},
"required": [
"items"
],
"patternProperties": {
"^(?!(?:items)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"items"
]
}
]
}
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"status": {
"type": "string",
"enum": [
"draft",
"active",
"paused",
"deleting"
]
},
"publishedVersionId": {
"anyOf": [
{
"$ref": "#/$defs/WorkflowVersionId"
},
{
"type": "null"
}
]
},
"triggerType": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
},
{
"type": "null"
}
]
},
"alertCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"version": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/WorkflowVersionId"
},
"workflowId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"graph": {
"type": "object",
"properties": {
"schemaVersion": {
"anyOf": [
{
"type": "number",
"enum": [
1
]
}
]
},
"nodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"type": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
},
"position": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"required": [
"x",
"y"
],
"patternProperties": {
"^(?!(?:x|y)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"x",
"y"
]
}
},
"data": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"id",
"type",
"position",
"data"
],
"patternProperties": {
"^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"type",
"position",
"data"
]
}
},
"maxItems": 200
},
"edges": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"source": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"target": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"sourceHandle": {
"anyOf": [
{
"type": "string",
"enum": [
"yes",
"no"
]
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"source",
"target"
],
"patternProperties": {
"^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"source",
"target",
"sourceHandle"
]
}
},
"maxItems": 400
}
},
"required": [
"schemaVersion",
"nodes",
"edges"
],
"patternProperties": {
"^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"schemaVersion",
"nodes",
"edges"
]
}
},
"publishedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"workflowId",
"version",
"graph",
"publishedAt",
"createdAt",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|workflowId|version|graph|publishedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"workflowId",
"version",
"graph",
"publishedAt",
"createdAt",
"updatedAt"
]
}
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"name",
"status",
"publishedVersionId",
"triggerType",
"alertCount",
"createdAt",
"updatedAt",
"version"
],
"patternProperties": {
"^(?!(?:id|name|status|publishedVersionId|triggerType|alertCount|createdAt|updatedAt|version)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"status",
"publishedVersionId",
"triggerType",
"alertCount",
"createdAt",
"updatedAt",
"version"
]
}
},
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"workflowId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"workflowVersionId": {
"$ref": "#/$defs/WorkflowVersionId"
},
"status": {
"type": "string",
"enum": [
"queued",
"running",
"paused",
"completed",
"failed"
]
},
"error": {
"anyOf": [
{
"$ref": "#/$defs/Description"
},
{
"type": "null"
}
]
},
"leadId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"inboxId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"threadId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"triggerEvent": {
"$ref": "#/$defs/ShortText"
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"startedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"completedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"executions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/WorkflowNodeExecutionId"
},
"nodeId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"nodeType": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
},
"status": {
"type": "string",
"enum": [
"running",
"paused",
"completed",
"failed",
"skipped"
]
},
"error": {
"anyOf": [
{
"$ref": "#/$defs/Description"
},
{
"type": "null"
}
]
},
"branch": {
"anyOf": [
{
"type": "string",
"enum": [
"yes",
"no"
]
},
{
"type": "null"
}
]
},
"outputsRedacted": {
"type": "boolean"
},
"externalRunId": {
"anyOf": [
{
"$ref": "#/$defs/OpaqueId"
},
{
"type": "null"
}
]
},
"externalRestartRequiresAcknowledgement": {
"type": "boolean"
},
"externalResult": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 131072
},
{
"type": "null"
}
]
},
"workflowResult": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 131072
},
{
"type": "null"
}
]
},
"healthResult": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 131072
},
{
"type": "null"
}
]
},
"domainRotation": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 131072
},
{
"type": "null"
}
]
},
"getleadsResult": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 131072
},
{
"type": "null"
}
]
},
"agentText": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 131072
},
{
"type": "null"
}
]
},
"childRunId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"childWorkflowId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"humanRequestTaskId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"startedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"completedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"nodeId",
"nodeType",
"status",
"error",
"branch",
"outputsRedacted",
"externalRunId",
"externalRestartRequiresAcknowledgement",
"externalResult",
"workflowResult",
"healthResult",
"domainRotation",
"getleadsResult",
"agentText",
"childRunId",
"childWorkflowId",
"humanRequestTaskId",
"startedAt",
"completedAt"
],
"patternProperties": {
"^(?!(?:id|nodeId|nodeType|status|error|branch|outputsRedacted|externalRunId|externalRestartRequiresAcknowledgement|externalResult|workflowResult|healthResult|domainRotation|getleadsResult|agentText|childRunId|childWorkflowId|humanRequestTaskId|startedAt|completedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"nodeId",
"nodeType",
"status",
"error",
"branch",
"outputsRedacted",
"externalRunId",
"externalRestartRequiresAcknowledgement",
"externalResult",
"workflowResult",
"healthResult",
"domainRotation",
"getleadsResult",
"agentText",
"childRunId",
"childWorkflowId",
"humanRequestTaskId",
"startedAt",
"completedAt"
]
}
},
"maxItems": 200
},
"followUp": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/WorkflowFollowUpId"
},
"runId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"threadId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"inboxId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"counterpartyEmail": {
"$ref": "#/$defs/EmailAddress"
},
"status": {
"type": "string",
"enum": [
"active",
"awaiting_approval",
"completed",
"stopped"
]
},
"stopReason": {
"anyOf": [
{
"type": "string",
"enum": [
"replied",
"booked",
"human_took_over",
"negative_label",
"unsubscribed",
"thread_gone",
"stopped_by_user",
"agent_unauthorized",
"exhausted"
]
},
{
"type": "null"
}
]
},
"maxAttempts": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"attemptsSent": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"nextAttemptAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"lastOutboundAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"completedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"drafts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/WorkflowFollowUpDraftId"
},
"attempt": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"status": {
"type": "string",
"enum": [
"pending",
"approved",
"edited",
"rejected",
"sent",
"expired"
]
},
"bodyText": {
"type": "string",
"minLength": 1,
"maxLength": 4000
},
"modelReason": {
"anyOf": [
{
"$ref": "#/$defs/Description"
},
{
"type": "null"
}
]
},
"toolTrace": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/Union_"
}
},
{
"type": "null"
}
]
},
"sentMessageId": {
"anyOf": [
{
"$ref": "#/$defs/OpaqueId"
},
{
"type": "null"
}
]
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"attempt",
"status",
"bodyText",
"modelReason",
"toolTrace",
"sentMessageId",
"createdAt"
],
"patternProperties": {
"^(?!(?:id|attempt|status|bodyText|modelReason|toolTrace|sentMessageId|createdAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"attempt",
"status",
"bodyText",
"modelReason",
"toolTrace",
"sentMessageId",
"createdAt"
]
}
},
"maxItems": 100
}
},
"required": [
"id",
"runId",
"threadId",
"inboxId",
"counterpartyEmail",
"status",
"stopReason",
"maxAttempts",
"attemptsSent",
"nextAttemptAt",
"lastOutboundAt",
"completedAt",
"drafts"
],
"patternProperties": {
"^(?!(?:id|runId|threadId|inboxId|counterpartyEmail|status|stopReason|maxAttempts|attemptsSent|nextAttemptAt|lastOutboundAt|completedAt|drafts)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"runId",
"threadId",
"inboxId",
"counterpartyEmail",
"status",
"stopReason",
"maxAttempts",
"attemptsSent",
"nextAttemptAt",
"lastOutboundAt",
"completedAt",
"drafts"
]
}
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"workflowId",
"workflowVersionId",
"status",
"error",
"leadId",
"inboxId",
"threadId",
"triggerEvent",
"createdAt",
"startedAt",
"completedAt",
"executions",
"followUp"
],
"patternProperties": {
"^(?!(?:id|workflowId|workflowVersionId|status|error|leadId|inboxId|threadId|triggerEvent|createdAt|startedAt|completedAt|executions|followUp)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"workflowId",
"workflowVersionId",
"status",
"error",
"leadId",
"inboxId",
"threadId",
"triggerEvent",
"createdAt",
"startedAt",
"completedAt",
"executions",
"followUp"
]
}
},
"maxItems": 50
}
},
"required": [
"items"
],
"patternProperties": {
"^(?!(?:items)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"items"
]
}
]
}
},
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/WorkflowTriggerLogId"
},
"workflowId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"workflowVersionId": {
"$ref": "#/$defs/WorkflowVersionId"
},
"provider": {
"$ref": "#/$defs/ShortText"
},
"webhookId": {
"$ref": "#/$defs/OpaqueId"
},
"outcome": {
"type": "string",
"enum": [
"received",
"accepted",
"rejected",
"sample",
"ignored",
"duplicate",
"error"
]
},
"reason": {
"type": "string",
"enum": [
"processing",
"admitted",
"invalid_signature",
"invalid_payload",
"workspace_mismatch",
"webhook_mismatch",
"event_not_selected",
"campaign_not_selected",
"provider_sample",
"duplicate",
"webhook_inactive",
"effects_disabled",
"workflow_inactive",
"conditions_not_met",
"lead_not_found",
"processing_failed",
"payload_too_large",
"missing_payload",
"body_read_failed"
]
},
"httpStatus": {
"anyOf": [
{
"type": "integer",
"minimum": 100,
"maximum": 599
},
{
"type": "null"
}
]
},
"runId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"requestFields": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/ShortText"
}
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"completedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"workflowId",
"workflowVersionId",
"provider",
"webhookId",
"outcome",
"reason",
"httpStatus",
"runId",
"requestFields",
"createdAt",
"completedAt"
],
"patternProperties": {
"^(?!(?:id|workflowId|workflowVersionId|provider|webhookId|outcome|reason|httpStatus|runId|requestFields|createdAt|completedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"workflowId",
"workflowVersionId",
"provider",
"webhookId",
"outcome",
"reason",
"httpStatus",
"runId",
"requestFields",
"createdAt",
"completedAt"
]
}
}
},
"nextCursor": {
"anyOf": [
{
"$ref": "#/$defs/Cursor"
},
{
"type": "null"
}
]
}
},
"required": [
"items",
"nextCursor"
],
"patternProperties": {
"^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"items",
"nextCursor"
]
}
},
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/WorkflowAlertId"
},
"workflowId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"workflowRunId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"nodeId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"code": {
"$ref": "#/$defs/ShortText"
},
"message": {
"$ref": "#/$defs/Description"
},
"relatedWorkflowId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"workflowId",
"workflowRunId",
"nodeId",
"code",
"message",
"relatedWorkflowId",
"createdAt",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|workflowId|workflowRunId|nodeId|code|message|relatedWorkflowId|createdAt|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"workflowId",
"workflowRunId",
"nodeId",
"code",
"message",
"relatedWorkflowId",
"createdAt",
"updatedAt"
]
}
},
"maxItems": 200
}
},
"required": [
"items"
],
"patternProperties": {
"^(?!(?:items)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"items"
]
}
]
}
},
{
"type": "object",
"properties": {
"automation": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"kind": {
"anyOf": [
{
"type": "string",
"enum": [
"follow_up"
]
}
]
},
"id": {
"$ref": "#/$defs/WorkflowFollowUpId"
},
"runId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"workflowId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"workflowName": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"runStatus": {
"type": "string",
"enum": [
"queued",
"running",
"paused",
"completed",
"failed"
]
},
"status": {
"type": "string",
"enum": [
"active",
"awaiting_approval",
"completed",
"stopped"
]
},
"attemptsSent": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"maxAttempts": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"nextAttemptAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"stopReason": {
"anyOf": [
{
"type": "string",
"enum": [
"replied",
"booked",
"human_took_over",
"negative_label",
"unsubscribed",
"thread_gone",
"stopped_by_user",
"agent_unauthorized",
"exhausted"
]
},
{
"type": "null"
}
]
},
"pendingDraftId": {
"anyOf": [
{
"$ref": "#/$defs/WorkflowFollowUpDraftId"
},
{
"type": "null"
}
]
}
},
"required": [
"kind",
"id",
"runId",
"workflowId",
"workflowName",
"runStatus",
"status",
"attemptsSent",
"maxAttempts",
"nextAttemptAt",
"stopReason",
"pendingDraftId"
],
"patternProperties": {
"^(?!(?:kind|id|runId|workflowId|workflowName|runStatus|status|attemptsSent|maxAttempts|nextAttemptAt|stopReason|pendingDraftId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"kind",
"id",
"runId",
"workflowId",
"workflowName",
"runStatus",
"status",
"attemptsSent",
"maxAttempts",
"nextAttemptAt",
"stopReason",
"pendingDraftId"
]
}
},
{
"type": "object",
"properties": {
"kind": {
"anyOf": [
{
"type": "string",
"enum": [
"sequence"
]
}
]
},
"enrollmentId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"sequenceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"sequenceName": {
"$ref": "#/$defs/ShortText"
},
"childContactId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"contactStatus": {
"anyOf": [
{
"$ref": "#/$defs/ShortText"
},
{
"type": "null"
}
]
},
"currentStep": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"totalSteps": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"kind",
"enrollmentId",
"sequenceId",
"sequenceName",
"childContactId",
"contactStatus",
"currentStep",
"totalSteps"
],
"patternProperties": {
"^(?!(?:kind|enrollmentId|sequenceId|sequenceName|childContactId|contactStatus|currentStep|totalSteps)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"kind",
"enrollmentId",
"sequenceId",
"sequenceName",
"childContactId",
"contactStatus",
"currentStep",
"totalSteps"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"automation"
],
"patternProperties": {
"^(?!(?:automation)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"automation"
]
}
]
}
},
{
"type": "object",
"properties": {
"authorized": {
"type": "boolean"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/CallListId"
},
"name": {
"$ref": "#/$defs/ShortText"
}
},
"required": [
"id",
"name"
],
"patternProperties": {
"^(?!(?:id|name)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name"
]
}
},
"maxItems": 500
}
},
"required": [
"authorized",
"items"
],
"patternProperties": {
"^(?!(?:authorized|items)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"authorized",
"items"
]
}
},
{
"type": "object",
"properties": {
"authorized": {
"type": "boolean"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"$ref": "#/$defs/ShortText"
}
},
"required": [
"id",
"name"
],
"patternProperties": {
"^(?!(?:id|name)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name"
]
}
},
"maxItems": 500
}
},
"required": [
"authorized",
"items"
],
"patternProperties": {
"^(?!(?:authorized|items)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"authorized",
"items"
]
}
},
{
"type": "object",
"properties": {
"authorized": {
"type": "boolean"
},
"inboxes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"emailAddress": {
"$ref": "#/$defs/EmailAddress"
},
"provider": {
"type": "string",
"enum": [
"google_workspace",
"microsoft_365",
"other"
]
},
"status": {
"type": "string",
"enum": [
"active",
"inactive",
"error",
"alert"
]
}
},
"required": [
"id",
"emailAddress",
"provider",
"status"
],
"patternProperties": {
"^(?!(?:id|emailAddress|provider|status)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"emailAddress",
"provider",
"status"
]
}
},
"maxItems": 2000
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"color": {
"$ref": "#/$defs/HexColor"
},
"description": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"name",
"color",
"description",
"createdAt",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"color",
"description",
"createdAt",
"updatedAt"
]
}
},
"maxItems": 500
}
},
"required": [
"authorized",
"inboxes",
"tags"
],
"patternProperties": {
"^(?!(?:authorized|inboxes|tags)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"authorized",
"inboxes",
"tags"
]
}
},
{
"type": "object",
"properties": {
"authorized": {
"type": "boolean"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"versionId": {
"$ref": "#/$defs/WorkflowVersionId"
},
"inputs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/ShortText"
},
"type": {
"type": "string",
"enum": [
"string",
"domain",
"number",
"boolean",
"object",
"array"
]
},
"required": {
"type": "boolean"
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"name",
"type",
"required"
],
"patternProperties": {
"^(?!(?:name|type|required|description)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"name",
"type",
"required",
"description"
]
}
},
"maxItems": 50
},
"outputs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/ShortText"
},
"type": {
"type": "string",
"enum": [
"string",
"domain",
"number",
"boolean",
"object",
"array"
]
},
"required": {
"type": "boolean"
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"name",
"type",
"required"
],
"patternProperties": {
"^(?!(?:name|type|required|description)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"name",
"type",
"required",
"description"
]
}
},
"maxItems": 50
}
},
"required": [
"id",
"name",
"versionId",
"inputs",
"outputs"
],
"patternProperties": {
"^(?!(?:id|name|versionId|inputs|outputs)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"versionId",
"inputs",
"outputs"
]
}
},
"maxItems": 500
}
},
"required": [
"authorized",
"items"
],
"patternProperties": {
"^(?!(?:authorized|items)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"authorized",
"items"
]
}
},
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"messageId": {
"$ref": "#/$defs/OpaqueId"
},
"threadId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"from": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"subject": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"snippet": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"receivedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"label": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
}
},
"required": [
"messageId",
"threadId",
"from",
"subject",
"snippet",
"receivedAt",
"label"
],
"patternProperties": {
"^(?!(?:messageId|threadId|from|subject|snippet|receivedAt|label)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"messageId",
"threadId",
"from",
"subject",
"snippet",
"receivedAt",
"label"
]
}
},
"maxItems": 50
}
},
"required": [
"items"
],
"patternProperties": {
"^(?!(?:items)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"items"
]
}
]
}
},
{
"type": "object",
"properties": {
"reply": {
"type": "object",
"properties": {
"messageId": {
"$ref": "#/$defs/OpaqueId"
},
"threadId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"from": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"subject": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"snippet": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"receivedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"label": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
}
},
"required": [
"messageId",
"threadId",
"from",
"subject",
"snippet",
"receivedAt",
"label"
],
"patternProperties": {
"^(?!(?:messageId|threadId|from|subject|snippet|receivedAt|label)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"messageId",
"threadId",
"from",
"subject",
"snippet",
"receivedAt",
"label"
]
}
},
"steps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"nodeId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"label": {
"$ref": "#/$defs/ShortText"
},
"status": {
"type": "string",
"enum": [
"matched",
"not_matched",
"preview",
"blocked"
]
},
"detail": {
"$ref": "#/$defs/Description"
},
"branch": {
"type": "string",
"enum": [
"yes",
"no"
]
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/ShortText"
},
"value": {
"$ref": "#/$defs/Description"
},
"unavailable": {
"$ref": "#/$defs/ShortText"
}
},
"required": [
"name"
],
"patternProperties": {
"^(?!(?:name|value|unavailable)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"name",
"value",
"unavailable"
]
}
},
"maxItems": 100
}
},
"required": [
"nodeId",
"label",
"status",
"detail"
],
"patternProperties": {
"^(?!(?:nodeId|label|status|detail|branch|fields)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"nodeId",
"label",
"status",
"detail",
"branch",
"fields"
]
}
},
"maxItems": 200
}
},
"required": [
"reply",
"steps"
],
"patternProperties": {
"^(?!(?:reply|steps)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reply",
"steps"
]
}
}
]
},
{
"type": "object"
}
]
},
{
"type": "object",
"properties": {
"data": {
"allOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"status": {
"type": "string",
"enum": [
"draft",
"active",
"paused",
"deleting"
]
},
"publishedVersionId": {
"anyOf": [
{
"$ref": "#/$defs/WorkflowVersionId"
},
{
"type": "null"
}
]
},
"triggerType": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
},
{
"type": "null"
}
]
},
"alertCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"name",
"status",
"publishedVersionId",
"triggerType",
"alertCount",
"createdAt",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|name|status|publishedVersionId|triggerType|alertCount|createdAt|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"status",
"publishedVersionId",
"triggerType",
"alertCount",
"createdAt",
"updatedAt"
]
}
}
}
},
"required": [
"items"
],
"patternProperties": {
"^(?!(?:items)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"items"
]
}
]
}
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"status": {
"type": "string",
"enum": [
"draft",
"active",
"paused",
"deleting"
]
},
"publishedVersionId": {
"anyOf": [
{
"$ref": "#/$defs/WorkflowVersionId"
},
{
"type": "null"
}
]
},
"triggerType": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
},
{
"type": "null"
}
]
},
"alertCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"version": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/WorkflowVersionId"
},
"workflowId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"graph": {
"type": "object",
"properties": {
"schemaVersion": {
"anyOf": [
{
"type": "number",
"enum": [
1
]
}
]
},
"nodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"type": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
},
"position": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"required": [
"x",
"y"
],
"patternProperties": {
"^(?!(?:x|y)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"x",
"y"
]
}
},
"data": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"id",
"type",
"position",
"data"
],
"patternProperties": {
"^(?!(?:id|type|position|data)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"type",
"position",
"data"
]
}
},
"maxItems": 200
},
"edges": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"source": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"target": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"sourceHandle": {
"anyOf": [
{
"type": "string",
"enum": [
"yes",
"no"
]
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"source",
"target"
],
"patternProperties": {
"^(?!(?:id|source|target|sourceHandle)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"source",
"target",
"sourceHandle"
]
}
},
"maxItems": 400
}
},
"required": [
"schemaVersion",
"nodes",
"edges"
],
"patternProperties": {
"^(?!(?:schemaVersion|nodes|edges)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"schemaVersion",
"nodes",
"edges"
]
}
},
"publishedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"workflowId",
"version",
"graph",
"publishedAt",
"createdAt",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|workflowId|version|graph|publishedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"workflowId",
"version",
"graph",
"publishedAt",
"createdAt",
"updatedAt"
]
}
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"name",
"status",
"publishedVersionId",
"triggerType",
"alertCount",
"createdAt",
"updatedAt",
"version"
],
"patternProperties": {
"^(?!(?:id|name|status|publishedVersionId|triggerType|alertCount|createdAt|updatedAt|version)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"status",
"publishedVersionId",
"triggerType",
"alertCount",
"createdAt",
"updatedAt",
"version"
]
}
},
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"workflowId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"workflowVersionId": {
"$ref": "#/$defs/WorkflowVersionId"
},
"status": {
"type": "string",
"enum": [
"queued",
"running",
"paused",
"completed",
"failed"
]
},
"error": {
"anyOf": [
{
"$ref": "#/$defs/Description"
},
{
"type": "null"
}
]
},
"leadId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"inboxId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"threadId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"triggerEvent": {
"$ref": "#/$defs/ShortText"
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"startedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"completedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"executions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/WorkflowNodeExecutionId"
},
"nodeId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"nodeType": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^(?:trigger|logic|action)\\.[a-z0-9_]+$"
},
"status": {
"type": "string",
"enum": [
"running",
"paused",
"completed",
"failed",
"skipped"
]
},
"error": {
"anyOf": [
{
"$ref": "#/$defs/Description"
},
{
"type": "null"
}
]
},
"branch": {
"anyOf": [
{
"type": "string",
"enum": [
"yes",
"no"
]
},
{
"type": "null"
}
]
},
"outputsRedacted": {
"type": "boolean"
},
"externalRunId": {
"anyOf": [
{
"$ref": "#/$defs/OpaqueId"
},
{
"type": "null"
}
]
},
"externalRestartRequiresAcknowledgement": {
"type": "boolean"
},
"externalResult": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 131072
},
{
"type": "null"
}
]
},
"workflowResult": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 131072
},
{
"type": "null"
}
]
},
"healthResult": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 131072
},
{
"type": "null"
}
]
},
"domainRotation": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 131072
},
{
"type": "null"
}
]
},
"getleadsResult": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 131072
},
{
"type": "null"
}
]
},
"agentText": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 131072
},
{
"type": "null"
}
]
},
"childRunId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"childWorkflowId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"humanRequestTaskId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"startedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"completedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"nodeId",
"nodeType",
"status",
"error",
"branch",
"outputsRedacted",
"externalRunId",
"externalRestartRequiresAcknowledgement",
"externalResult",
"workflowResult",
"healthResult",
"domainRotation",
"getleadsResult",
"agentText",
"childRunId",
"childWorkflowId",
"humanRequestTaskId",
"startedAt",
"completedAt"
],
"patternProperties": {
"^(?!(?:id|nodeId|nodeType|status|error|branch|outputsRedacted|externalRunId|externalRestartRequiresAcknowledgement|externalResult|workflowResult|healthResult|domainRotation|getleadsResult|agentText|childRunId|childWorkflowId|humanRequestTaskId|startedAt|completedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"nodeId",
"nodeType",
"status",
"error",
"branch",
"outputsRedacted",
"externalRunId",
"externalRestartRequiresAcknowledgement",
"externalResult",
"workflowResult",
"healthResult",
"domainRotation",
"getleadsResult",
"agentText",
"childRunId",
"childWorkflowId",
"humanRequestTaskId",
"startedAt",
"completedAt"
]
}
},
"maxItems": 200
},
"followUp": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/WorkflowFollowUpId"
},
"runId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"threadId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"inboxId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"counterpartyEmail": {
"$ref": "#/$defs/EmailAddress"
},
"status": {
"type": "string",
"enum": [
"active",
"awaiting_approval",
"completed",
"stopped"
]
},
"stopReason": {
"anyOf": [
{
"type": "string",
"enum": [
"replied",
"booked",
"human_took_over",
"negative_label",
"unsubscribed",
"thread_gone",
"stopped_by_user",
"agent_unauthorized",
"exhausted"
]
},
{
"type": "null"
}
]
},
"maxAttempts": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"attemptsSent": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"nextAttemptAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"lastOutboundAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"completedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"drafts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/WorkflowFollowUpDraftId"
},
"attempt": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"status": {
"type": "string",
"enum": [
"pending",
"approved",
"edited",
"rejected",
"sent",
"expired"
]
},
"bodyText": {
"type": "string",
"minLength": 1,
"maxLength": 4000
},
"modelReason": {
"anyOf": [
{
"$ref": "#/$defs/Description"
},
{
"type": "null"
}
]
},
"toolTrace": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/Union_"
}
},
{
"type": "null"
}
]
},
"sentMessageId": {
"anyOf": [
{
"$ref": "#/$defs/OpaqueId"
},
{
"type": "null"
}
]
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"attempt",
"status",
"bodyText",
"modelReason",
"toolTrace",
"sentMessageId",
"createdAt"
],
"patternProperties": {
"^(?!(?:id|attempt|status|bodyText|modelReason|toolTrace|sentMessageId|createdAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"attempt",
"status",
"bodyText",
"modelReason",
"toolTrace",
"sentMessageId",
"createdAt"
]
}
},
"maxItems": 100
}
},
"required": [
"id",
"runId",
"threadId",
"inboxId",
"counterpartyEmail",
"status",
"stopReason",
"maxAttempts",
"attemptsSent",
"nextAttemptAt",
"lastOutboundAt",
"completedAt",
"drafts"
],
"patternProperties": {
"^(?!(?:id|runId|threadId|inboxId|counterpartyEmail|status|stopReason|maxAttempts|attemptsSent|nextAttemptAt|lastOutboundAt|completedAt|drafts)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"runId",
"threadId",
"inboxId",
"counterpartyEmail",
"status",
"stopReason",
"maxAttempts",
"attemptsSent",
"nextAttemptAt",
"lastOutboundAt",
"completedAt",
"drafts"
]
}
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"workflowId",
"workflowVersionId",
"status",
"error",
"leadId",
"inboxId",
"threadId",
"triggerEvent",
"createdAt",
"startedAt",
"completedAt",
"executions",
"followUp"
],
"patternProperties": {
"^(?!(?:id|workflowId|workflowVersionId|status|error|leadId|inboxId|threadId|triggerEvent|createdAt|startedAt|completedAt|executions|followUp)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"workflowId",
"workflowVersionId",
"status",
"error",
"leadId",
"inboxId",
"threadId",
"triggerEvent",
"createdAt",
"startedAt",
"completedAt",
"executions",
"followUp"
]
}
},
"maxItems": 50
}
},
"required": [
"items"
],
"patternProperties": {
"^(?!(?:items)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"items"
]
}
]
}
},
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/WorkflowTriggerLogId"
},
"workflowId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"workflowVersionId": {
"$ref": "#/$defs/WorkflowVersionId"
},
"provider": {
"$ref": "#/$defs/ShortText"
},
"webhookId": {
"$ref": "#/$defs/OpaqueId"
},
"outcome": {
"type": "string",
"enum": [
"received",
"accepted",
"rejected",
"sample",
"ignored",
"duplicate",
"error"
]
},
"reason": {
"type": "string",
"enum": [
"processing",
"admitted",
"invalid_signature",
"invalid_payload",
"workspace_mismatch",
"webhook_mismatch",
"event_not_selected",
"campaign_not_selected",
"provider_sample",
"duplicate",
"webhook_inactive",
"effects_disabled",
"workflow_inactive",
"conditions_not_met",
"lead_not_found",
"processing_failed",
"payload_too_large",
"missing_payload",
"body_read_failed"
]
},
"httpStatus": {
"anyOf": [
{
"type": "integer",
"minimum": 100,
"maximum": 599
},
{
"type": "null"
}
]
},
"runId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"requestFields": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/ShortText"
}
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"completedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"workflowId",
"workflowVersionId",
"provider",
"webhookId",
"outcome",
"reason",
"httpStatus",
"runId",
"requestFields",
"createdAt",
"completedAt"
],
"patternProperties": {
"^(?!(?:id|workflowId|workflowVersionId|provider|webhookId|outcome|reason|httpStatus|runId|requestFields|createdAt|completedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"workflowId",
"workflowVersionId",
"provider",
"webhookId",
"outcome",
"reason",
"httpStatus",
"runId",
"requestFields",
"createdAt",
"completedAt"
]
}
}
},
"nextCursor": {
"anyOf": [
{
"$ref": "#/$defs/Cursor"
},
{
"type": "null"
}
]
}
},
"required": [
"items",
"nextCursor"
],
"patternProperties": {
"^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"items",
"nextCursor"
]
}
},
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/WorkflowAlertId"
},
"workflowId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"workflowRunId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"nodeId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"code": {
"$ref": "#/$defs/ShortText"
},
"message": {
"$ref": "#/$defs/Description"
},
"relatedWorkflowId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"workflowId",
"workflowRunId",
"nodeId",
"code",
"message",
"relatedWorkflowId",
"createdAt",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|workflowId|workflowRunId|nodeId|code|message|relatedWorkflowId|createdAt|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"workflowId",
"workflowRunId",
"nodeId",
"code",
"message",
"relatedWorkflowId",
"createdAt",
"updatedAt"
]
}
},
"maxItems": 200
}
},
"required": [
"items"
],
"patternProperties": {
"^(?!(?:items)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"items"
]
}
]
}
},
{
"type": "object",
"properties": {
"automation": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"kind": {
"anyOf": [
{
"type": "string",
"enum": [
"follow_up"
]
}
]
},
"id": {
"$ref": "#/$defs/WorkflowFollowUpId"
},
"runId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"workflowId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"workflowName": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"runStatus": {
"type": "string",
"enum": [
"queued",
"running",
"paused",
"completed",
"failed"
]
},
"status": {
"type": "string",
"enum": [
"active",
"awaiting_approval",
"completed",
"stopped"
]
},
"attemptsSent": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"maxAttempts": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"nextAttemptAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"stopReason": {
"anyOf": [
{
"type": "string",
"enum": [
"replied",
"booked",
"human_took_over",
"negative_label",
"unsubscribed",
"thread_gone",
"stopped_by_user",
"agent_unauthorized",
"exhausted"
]
},
{
"type": "null"
}
]
},
"pendingDraftId": {
"anyOf": [
{
"$ref": "#/$defs/WorkflowFollowUpDraftId"
},
{
"type": "null"
}
]
}
},
"required": [
"kind",
"id",
"runId",
"workflowId",
"workflowName",
"runStatus",
"status",
"attemptsSent",
"maxAttempts",
"nextAttemptAt",
"stopReason",
"pendingDraftId"
],
"patternProperties": {
"^(?!(?:kind|id|runId|workflowId|workflowName|runStatus|status|attemptsSent|maxAttempts|nextAttemptAt|stopReason|pendingDraftId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"kind",
"id",
"runId",
"workflowId",
"workflowName",
"runStatus",
"status",
"attemptsSent",
"maxAttempts",
"nextAttemptAt",
"stopReason",
"pendingDraftId"
]
}
},
{
"type": "object",
"properties": {
"kind": {
"anyOf": [
{
"type": "string",
"enum": [
"sequence"
]
}
]
},
"enrollmentId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"sequenceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"sequenceName": {
"$ref": "#/$defs/ShortText"
},
"childContactId": {
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
{
"type": "null"
}
]
},
"contactStatus": {
"anyOf": [
{
"$ref": "#/$defs/ShortText"
},
{
"type": "null"
}
]
},
"currentStep": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"totalSteps": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"kind",
"enrollmentId",
"sequenceId",
"sequenceName",
"childContactId",
"contactStatus",
"currentStep",
"totalSteps"
],
"patternProperties": {
"^(?!(?:kind|enrollmentId|sequenceId|sequenceName|childContactId|contactStatus|currentStep|totalSteps)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"kind",
"enrollmentId",
"sequenceId",
"sequenceName",
"childContactId",
"contactStatus",
"currentStep",
"totalSteps"
]
}
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"automation"
],
"patternProperties": {
"^(?!(?:automation)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"automation"
]
}
]
}
},
{
"type": "object",
"properties": {
"authorized": {
"type": "boolean"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/CallListId"
},
"name": {
"$ref": "#/$defs/ShortText"
}
},
"required": [
"id",
"name"
],
"patternProperties": {
"^(?!(?:id|name)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name"
]
}
},
"maxItems": 500
}
},
"required": [
"authorized",
"items"
],
"patternProperties": {
"^(?!(?:authorized|items)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"authorized",
"items"
]
}
},
{
"type": "object",
"properties": {
"authorized": {
"type": "boolean"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"$ref": "#/$defs/ShortText"
}
},
"required": [
"id",
"name"
],
"patternProperties": {
"^(?!(?:id|name)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name"
]
}
},
"maxItems": 500
}
},
"required": [
"authorized",
"items"
],
"patternProperties": {
"^(?!(?:authorized|items)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"authorized",
"items"
]
}
},
{
"type": "object",
"properties": {
"authorized": {
"type": "boolean"
},
"inboxes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"emailAddress": {
"$ref": "#/$defs/EmailAddress"
},
"provider": {
"type": "string",
"enum": [
"google_workspace",
"microsoft_365",
"other"
]
},
"status": {
"type": "string",
"enum": [
"active",
"inactive",
"error",
"alert"
]
}
},
"required": [
"id",
"emailAddress",
"provider",
"status"
],
"patternProperties": {
"^(?!(?:id|emailAddress|provider|status)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"emailAddress",
"provider",
"status"
]
}
},
"maxItems": 2000
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"color": {
"$ref": "#/$defs/HexColor"
},
"description": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"name",
"color",
"description",
"createdAt",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|name|color|description|createdAt|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"color",
"description",
"createdAt",
"updatedAt"
]
}
},
"maxItems": 500
}
},
"required": [
"authorized",
"inboxes",
"tags"
],
"patternProperties": {
"^(?!(?:authorized|inboxes|tags)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"authorized",
"inboxes",
"tags"
]
}
},
{
"type": "object",
"properties": {
"authorized": {
"type": "boolean"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"versionId": {
"$ref": "#/$defs/WorkflowVersionId"
},
"inputs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/ShortText"
},
"type": {
"type": "string",
"enum": [
"string",
"domain",
"number",
"boolean",
"object",
"array"
]
},
"required": {
"type": "boolean"
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"name",
"type",
"required"
],
"patternProperties": {
"^(?!(?:name|type|required|description)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"name",
"type",
"required",
"description"
]
}
},
"maxItems": 50
},
"outputs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/ShortText"
},
"type": {
"type": "string",
"enum": [
"string",
"domain",
"number",
"boolean",
"object",
"array"
]
},
"required": {
"type": "boolean"
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"name",
"type",
"required"
],
"patternProperties": {
"^(?!(?:name|type|required|description)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"name",
"type",
"required",
"description"
]
}
},
"maxItems": 50
}
},
"required": [
"id",
"name",
"versionId",
"inputs",
"outputs"
],
"patternProperties": {
"^(?!(?:id|name|versionId|inputs|outputs)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"versionId",
"inputs",
"outputs"
]
}
},
"maxItems": 500
}
},
"required": [
"authorized",
"items"
],
"patternProperties": {
"^(?!(?:authorized|items)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"authorized",
"items"
]
}
},
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"messageId": {
"$ref": "#/$defs/OpaqueId"
},
"threadId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"from": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"subject": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"snippet": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"receivedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"label": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
}
},
"required": [
"messageId",
"threadId",
"from",
"subject",
"snippet",
"receivedAt",
"label"
],
"patternProperties": {
"^(?!(?:messageId|threadId|from|subject|snippet|receivedAt|label)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"messageId",
"threadId",
"from",
"subject",
"snippet",
"receivedAt",
"label"
]
}
},
"maxItems": 50
}
},
"required": [
"items"
],
"patternProperties": {
"^(?!(?:items)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"items"
]
}
]
}
},
{
"type": "object",
"properties": {
"reply": {
"type": "object",
"properties": {
"messageId": {
"$ref": "#/$defs/OpaqueId"
},
"threadId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"from": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"subject": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"snippet": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"receivedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"label": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
}
},
"required": [
"messageId",
"threadId",
"from",
"subject",
"snippet",
"receivedAt",
"label"
],
"patternProperties": {
"^(?!(?:messageId|threadId|from|subject|snippet|receivedAt|label)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"messageId",
"threadId",
"from",
"subject",
"snippet",
"receivedAt",
"label"
]
}
},
"steps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"nodeId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"label": {
"$ref": "#/$defs/ShortText"
},
"status": {
"type": "string",
"enum": [
"matched",
"not_matched",
"preview",
"blocked"
]
},
"detail": {
"$ref": "#/$defs/Description"
},
"branch": {
"type": "string",
"enum": [
"yes",
"no"
]
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/ShortText"
},
"value": {
"$ref": "#/$defs/Description"
},
"unavailable": {
"$ref": "#/$defs/ShortText"
}
},
"required": [
"name"
],
"patternProperties": {
"^(?!(?:name|value|unavailable)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"name",
"value",
"unavailable"
]
}
},
"maxItems": 100
}
},
"required": [
"nodeId",
"label",
"status",
"detail"
],
"patternProperties": {
"^(?!(?:nodeId|label|status|detail|branch|fields)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"nodeId",
"label",
"status",
"detail",
"branch",
"fields"
]
}
},
"maxItems": 200
}
},
"required": [
"reply",
"steps"
],
"patternProperties": {
"^(?!(?:reply|steps)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reply",
"steps"
]
}
}
]
},
{
"not": {
"type": "object"
}
}
]
}
},
"required": [
"data"
],
"additionalProperties": false
}
]
}
```
### Underlying API operations
- `workflows.list`: `GET /v1/workspaces/:workspaceId/workflows`
- `workflows.get`: `GET /v1/workspaces/:workspaceId/workflows/:workflowId`
- `workflows.runs`: `GET /v1/workspaces/:workspaceId/workflows/:workflowId/runs`
- `workflows.triggerLogs`: `GET /v1/workspaces/:workspaceId/workflows/:workflowId/trigger-logs`
- `workflows.alerts`: `GET /v1/workspaces/:workspaceId/workflows/:workflowId/alerts`
- `workflows.threadAutomation`: `GET /v1/workspaces/:workspaceId/workflows/threads/:threadId`
- `workflows.simulate`: `POST /v1/workspaces/:workspaceId/workflows/:workflowId/simulate`
- `workflows.testReplies`: `GET /v1/workspaces/:workspaceId/workflows/test-replies`
- `workflowOptions.callLists`: `GET /v1/workspaces/:workspaceId/workflows/options/call-lists`
- `workflowOptions.sequences`: `GET /v1/workspaces/:workspaceId/workflows/options/sequences`
- `workflowOptions.inboxScopes`: `GET /v1/workspaces/:workspaceId/workflows/options/inbox-scopes`
- `workflowOptions.enrollmentTargets`: `GET /v1/workspaces/:workspaceId/workflows/options/enrollment-targets`