read_campaign_audience
Read a campaign's audience and sequence state: contact pages and counts, timezone audits, the grouped step list, per-step stats, the full sequence document, reusable sequences and their enrollments, and subsequence branches.
# 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_campaign_audience
Read a campaign's audience and sequence state: contact pages and counts, timezone audits, the grouped step list, per-step stats, the full sequence document, reusable sequences and their enrollments, and subsequence branches.
Choose an action and its required identifiers. Use reusable_sequences for Workspace discovery; other actions require a campaignId or sequenceId. Read current enrollment, layout, and revisions before proposing changes.
It never returns step bodies' rendered output, contact credentials, or sends anything; use the write capabilities for changes.
Scopes: campaign:read, lead:read, sequence:read, analytics:read
Risk: read; confirmation: none; idempotency: none.
### Input schema (personal API key)
```json
{
"type": "object",
"anyOf": [
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"contacts"
]
},
"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"
},
"campaignId": {
"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"
},
"limit": {
"type": "string"
},
"offset": {
"type": "string"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|limit|offset)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"limit",
"offset"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"contact_count"
]
},
"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"
},
"campaignId": {
"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"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"timezone_audit"
]
},
"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"
},
"campaignId": {
"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"
},
"sourceField": {
"type": "string"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId|sourceField)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"sourceField"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"steps"
]
},
"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"
},
"campaignId": {
"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"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"step_count"
]
},
"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"
},
"campaignId": {
"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"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"step_stats"
]
},
"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"
},
"campaignId": {
"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"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"sequence_document"
]
},
"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"
},
"campaignId": {
"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"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"reusable_sequences"
]
},
"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"
},
"activeOnly": {
"type": "string",
"enum": [
"true",
"false"
]
}
},
"required": [
"action",
"workspaceId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|activeOnly)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"activeOnly"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"sequence_enrollments"
]
},
"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"
},
"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"
}
},
"required": [
"action",
"workspaceId",
"sequenceId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|sequenceId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"sequenceId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"subsequences"
]
},
"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"
},
"campaignId": {
"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"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId"
]
}
}
]
}
```
### Input schema (OAuth / delegated agent)
```json
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"format": "uuid",
"description": "Target Workspace UUID. Call list_workspaces to enumerate the Workspaces this credential may access, then pass the chosen id here."
}
},
"required": [
"workspaceId"
],
"anyOf": [
{
"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"
},
"action": {
"type": "string",
"enum": [
"contacts"
]
},
"campaignId": {
"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"
},
"limit": {
"type": "string"
},
"offset": {
"type": "string"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|limit|offset)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"limit",
"offset"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"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"
},
"action": {
"type": "string",
"enum": [
"contact_count"
]
},
"campaignId": {
"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"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"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"
},
"action": {
"type": "string",
"enum": [
"timezone_audit"
]
},
"campaignId": {
"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"
},
"sourceField": {
"type": "string"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId|sourceField)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId",
"sourceField"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"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"
},
"action": {
"type": "string",
"enum": [
"steps"
]
},
"campaignId": {
"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"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"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"
},
"action": {
"type": "string",
"enum": [
"step_count"
]
},
"campaignId": {
"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"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"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"
},
"action": {
"type": "string",
"enum": [
"step_stats"
]
},
"campaignId": {
"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"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"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"
},
"action": {
"type": "string",
"enum": [
"sequence_document"
]
},
"campaignId": {
"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"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"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"
},
"action": {
"type": "string",
"enum": [
"reusable_sequences"
]
},
"activeOnly": {
"type": "string",
"enum": [
"true",
"false"
]
}
},
"required": [
"action",
"workspaceId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|activeOnly)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"activeOnly"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"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"
},
"action": {
"type": "string",
"enum": [
"sequence_enrollments"
]
},
"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"
}
},
"required": [
"action",
"workspaceId",
"sequenceId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|sequenceId)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"sequenceId"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
},
{
"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"
},
"action": {
"type": "string",
"enum": [
"subsequences"
]
},
"campaignId": {
"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"
}
},
"required": [
"action",
"workspaceId",
"campaignId"
],
"patternProperties": {
"^(?!(?:workspaceId)$)[\\s\\S]*?(?:^(?!(?:action|workspaceId|campaignId)$)[\\s\\S]*$)": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"action",
"workspaceId",
"campaignId"
]
},
{
"enum": [
"workspaceId"
]
}
]
}
}
]
}
```
### Output schema (structuredContent)
```json
{
"$defs": {
"EmailAddress": {
"type": "string",
"minLength": 3,
"maxLength": 320,
"pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
},
"LeadStoredText": {
"type": "string",
"maxLength": 65536
},
"NonEmptyString": {
"type": "string",
"minLength": 1,
"maxLength": 4096
},
"Union_": {
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/Union_"
}
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
]
},
"UtcDateTimeEncoded": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
},
"ShortText": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"type": "object",
"anyOf": [
{
"allOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"campaignLeads": {
"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"
},
"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"
}
]
},
"status": {
"type": "string",
"enum": [
"not_contacted",
"contacted",
"completed",
"task_pending",
"task_failed",
"paused",
"out_of_office",
"bounced",
"unsubscribed",
"ladder_queued",
"moved_to_subsequence"
]
},
"currentPass": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"pendingStepId": {
"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"
}
]
},
"pendingStepPass": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"email": {
"$ref": "#/$defs/EmailAddress"
},
"firstName": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"lastName": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"company": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"jobTitle": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"companyDomain": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"companyWebsiteUrl": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"personalLinkedInUrl": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"companyLinkedInUrl": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"city": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"state": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"country": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"timezone": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"customFieldValues": {
"type": "object",
"additionalProperties": true
}
},
"required": [
"id",
"leadId",
"status",
"currentPass",
"pendingStepId",
"pendingStepPass",
"email",
"firstName",
"lastName",
"company",
"jobTitle",
"companyDomain",
"companyWebsiteUrl",
"personalLinkedInUrl",
"companyLinkedInUrl",
"city",
"state",
"country",
"timezone",
"customFieldValues"
],
"patternProperties": {
"^(?!(?:id|leadId|status|currentPass|pendingStepId|pendingStepPass|email|firstName|lastName|company|jobTitle|companyDomain|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|city|state|country|timezone|customFieldValues)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"leadId",
"status",
"currentPass",
"pendingStepId",
"pendingStepPass",
"email",
"firstName",
"lastName",
"company",
"jobTitle",
"companyDomain",
"companyWebsiteUrl",
"personalLinkedInUrl",
"companyLinkedInUrl",
"city",
"state",
"country",
"timezone",
"customFieldValues"
]
}
}
},
"customFieldKeys": {
"type": "array",
"items": {
"$ref": "#/$defs/LeadStoredText"
}
}
},
"required": [
"campaignLeads",
"customFieldKeys"
],
"patternProperties": {
"^(?!(?:campaignLeads|customFieldKeys)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"campaignLeads",
"customFieldKeys"
]
}
},
{
"type": "object",
"properties": {
"count": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"count"
],
"patternProperties": {
"^(?!(?:count)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"count"
]
}
]
}
},
{
"type": "object",
"properties": {
"sourceField": {
"type": "string"
},
"summary": {
"type": "object",
"properties": {
"total": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"valid": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"invalid": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"missing": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"total",
"valid",
"invalid",
"missing"
],
"patternProperties": {
"^(?!(?:total|valid|invalid|missing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"total",
"valid",
"invalid",
"missing"
]
}
},
"contacts": {
"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"
},
"email": {
"type": "string"
},
"current": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"valid",
"invalid",
"missing"
]
},
"resolved": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"email",
"current",
"source",
"status",
"resolved"
],
"patternProperties": {
"^(?!(?:id|email|current|source|status|resolved)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"email",
"current",
"source",
"status",
"resolved"
]
}
}
}
},
"required": [
"sourceField",
"summary",
"contacts"
],
"patternProperties": {
"^(?!(?:sourceField|summary|contacts)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"sourceField",
"summary",
"contacts"
]
}
},
{
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"type": {
"type": "string",
"enum": [
"email_content"
]
},
"bodyFormat": {
"type": "string",
"enum": [
"inherit",
"plain",
"html"
]
},
"previousThreadSelection": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"latest",
"custom"
]
},
"stepIds": {
"type": "array",
"items": {
"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"
}
}
},
"required": [
"mode"
],
"patternProperties": {
"^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"mode",
"stepIds"
]
}
},
{
"type": "null"
}
]
},
"variants": {
"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"
},
"variantOrder": {
"type": "integer",
"minimum": 1
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"enabled": {
"type": "boolean"
},
"subject": {
"anyOf": [
{
"type": "object",
"properties": {
"root": {
"$ref": "#/$defs/Union_"
}
},
"required": [
"root"
],
"patternProperties": {
"^(?!(?:root)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"root"
]
}
]
}
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"type": "object",
"properties": {
"root": {
"$ref": "#/$defs/Union_"
}
},
"required": [
"root"
],
"patternProperties": {
"^(?!(?:root)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"root"
]
}
]
}
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"saved"
]
}
},
"required": [
"id",
"variantOrder",
"revision",
"enabled",
"subject",
"body",
"status"
],
"patternProperties": {
"^(?!(?:id|variantOrder|revision|enabled|subject|body|status)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"variantOrder",
"revision",
"enabled",
"subject",
"body",
"status"
]
}
}
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"type",
"bodyFormat",
"previousThreadSelection",
"variants"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|type|bodyFormat|previousThreadSelection|variants)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"type",
"bodyFormat",
"previousThreadSelection",
"variants"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"manual_review"
]
},
"notificationMessage": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"notificationMessage"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|notificationMessage)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"notificationMessage"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"linked_in_connection_request"
]
},
"connectionNote": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"connectionNote"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|connectionNote)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"connectionNote"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"linked_in_in_mail"
]
},
"subject": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"subject",
"body"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"phone_call"
]
},
"script": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"script"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|script)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"script"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"text_message"
]
},
"message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"mediaUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"message",
"mediaUrl"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|message|mediaUrl)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"message",
"mediaUrl"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"http_post_request"
]
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"headers": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"bodyTemplate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"url",
"headers",
"bodyTemplate"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"url",
"headers",
"bodyTemplate"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"heyreach_campaign"
]
},
"connectionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"campaignId": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"campaignName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"linkedInAccountId": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"connectionId",
"campaignId",
"campaignName",
"linkedInAccountId"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"connectionId",
"campaignId",
"campaignName",
"linkedInAccountId"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"attio_task"
]
},
"content": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"assigneeMemberIds": {
"type": "array",
"items": {
"type": "string"
}
},
"onMissingAssignee": {
"type": "string",
"enum": [
"skip",
"fail"
]
},
"deadlineOffsetDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"personLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
},
"companyLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"content",
"assigneeMemberIds",
"onMissingAssignee",
"deadlineOffsetDays",
"personLink",
"companyLink"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"content",
"assigneeMemberIds",
"onMissingAssignee",
"deadlineOffsetDays",
"personLink",
"companyLink"
]
}
}
]
}
},
{
"type": "object",
"properties": {
"count": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"count"
],
"patternProperties": {
"^(?!(?:count)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"count"
]
}
]
}
},
{
"type": "array",
"items": {
"type": "object",
"properties": {
"stepOrder": {
"type": "integer",
"minimum": 1
},
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"variants": {
"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"
},
"stepOrder": {
"type": "integer",
"minimum": 1
},
"variantOrder": {
"type": "integer",
"minimum": 1
},
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"sent": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"replied": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"repliedPercentage": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"positiveReplies": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"positiveRepliesPercentage": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"opened": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"openedPercentage": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"clicked": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"clickedPercentage": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
}
},
"required": [
"id",
"stepOrder",
"variantOrder",
"name",
"enabled",
"sent",
"replied",
"repliedPercentage",
"positiveReplies",
"positiveRepliesPercentage",
"opened",
"openedPercentage",
"clicked",
"clickedPercentage"
],
"patternProperties": {
"^(?!(?:id|stepOrder|variantOrder|name|enabled|sent|replied|repliedPercentage|positiveReplies|positiveRepliesPercentage|opened|openedPercentage|clicked|clickedPercentage)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepOrder",
"variantOrder",
"name",
"enabled",
"sent",
"replied",
"repliedPercentage",
"positiveReplies",
"positiveRepliesPercentage",
"opened",
"openedPercentage",
"clicked",
"clickedPercentage"
]
}
}
},
"totalSent": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"totalReplied": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"totalPositiveReplies": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"totalOpened": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"totalClicked": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"stepOrder",
"name",
"enabled",
"variants",
"totalSent",
"totalReplied",
"totalPositiveReplies",
"totalOpened",
"totalClicked"
],
"patternProperties": {
"^(?!(?:stepOrder|name|enabled|variants|totalSent|totalReplied|totalPositiveReplies|totalOpened|totalClicked)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"stepOrder",
"name",
"enabled",
"variants",
"totalSent",
"totalReplied",
"totalPositiveReplies",
"totalOpened",
"totalClicked"
]
}
}
},
{
"type": "object",
"properties": {
"campaignId": {
"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"
},
"sequenceRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"initialDelayMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"steps": {
"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"
},
"position": {
"type": "integer",
"minimum": 1
},
"type": {
"type": "string",
"enum": [
"email_content",
"manual_review",
"linked_in_connection_request",
"linked_in_in_mail",
"phone_call",
"text_message",
"http_post_request",
"attio_task",
"heyreach_campaign"
]
},
"waitFor": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"bodyFormat": {
"type": "string",
"enum": [
"inherit",
"plain",
"html"
]
},
"previousThreadSelection": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"latest",
"custom"
]
},
"stepIds": {
"type": "array",
"items": {
"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"
}
}
},
"required": [
"mode"
],
"patternProperties": {
"^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"mode",
"stepIds"
]
}
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"variants": {
"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"
},
"variantOrder": {
"type": "integer",
"minimum": 1
},
"enabled": {
"type": "boolean"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"content": {
"$ref": "#/$defs/Union_"
},
"plainText": {
"type": "object",
"properties": {
"subject": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"patternProperties": {
"^(?!(?:subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"subject",
"body"
]
}
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"variantOrder",
"enabled",
"revision",
"content",
"plainText",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|variantOrder|enabled|revision|content|plainText|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"variantOrder",
"enabled",
"revision",
"content",
"plainText",
"updatedAt"
]
}
}
}
},
"required": [
"id",
"position",
"type",
"waitFor",
"runMode",
"rearmAfterDays",
"bodyFormat",
"previousThreadSelection",
"enabled",
"revision",
"updatedAt",
"variants"
],
"patternProperties": {
"^(?!(?:id|position|type|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|revision|updatedAt|variants)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"position",
"type",
"waitFor",
"runMode",
"rearmAfterDays",
"bodyFormat",
"previousThreadSelection",
"enabled",
"revision",
"updatedAt",
"variants"
]
}
}
}
},
"required": [
"campaignId",
"sequenceRevision",
"initialDelayMinutes",
"steps"
],
"patternProperties": {
"^(?!(?:campaignId|sequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"campaignId",
"sequenceRevision",
"initialDelayMinutes",
"steps"
]
}
},
{
"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"
},
"status": {
"type": "string",
"enum": [
"draft",
"active",
"paused",
"archived",
"completed"
]
},
"pauseContext": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"manual"
]
}
]
},
"pausedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"user"
]
}
]
},
"evidence": {
"type": "null"
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
},
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"bounce_threshold"
]
}
]
},
"pausedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"system"
]
}
]
},
"evidence": {
"type": "object",
"properties": {
"thresholdPercent": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"bounceRatePercent": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"sentCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"bouncedCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"recipientBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"senderBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"unclassifiedBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"scope": {
"anyOf": [
{
"type": "string",
"enum": [
"campaign_lifetime"
]
}
]
}
},
"required": [
"thresholdPercent",
"bounceRatePercent",
"sentCount",
"bouncedCount",
"recipientBounceCount",
"senderBounceCount",
"unclassifiedBounceCount",
"scope"
],
"patternProperties": {
"^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"thresholdPercent",
"bounceRatePercent",
"sentCount",
"bouncedCount",
"recipientBounceCount",
"senderBounceCount",
"unclassifiedBounceCount",
"scope"
]
}
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
},
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"unknown"
]
}
]
},
"pausedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"unknown"
]
}
]
},
"evidence": {
"type": "null"
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
}
],
"description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
},
{
"type": "null"
}
]
},
"kind": {
"type": "string",
"enum": [
"sequence"
]
},
"initialDelayMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"stopOtherCampaignsOnEnroll": {
"type": "boolean"
},
"inboxIds": {
"type": "array",
"items": {
"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"
}
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"name",
"status",
"kind",
"initialDelayMinutes",
"stopOtherCampaignsOnEnroll",
"inboxIds",
"createdAt",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|name|status|pauseContext|kind|initialDelayMinutes|stopOtherCampaignsOnEnroll|inboxIds|createdAt|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"status",
"pauseContext",
"kind",
"initialDelayMinutes",
"stopOtherCampaignsOnEnroll",
"inboxIds",
"createdAt",
"updatedAt"
]
}
}
},
{
"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"
},
"subsequenceCampaignId": {
"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"
},
"sourceContactId": {
"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"
}
]
},
"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"
}
]
},
"triggerType": {
"type": "string",
"enum": [
"manual",
"reply",
"workflow"
]
},
"triggeredByUserId": {
"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"
}
]
},
"matchedTriggerId": {
"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"
}
]
},
"replyLabelId": {
"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"
}
]
},
"sourceThreadId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"pausedContactIds": {
"anyOf": [
{
"type": "array",
"items": {
"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"
}
]
},
"reengagedAfterUnsubscribeAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"enrolledAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"subsequenceCampaignId",
"sourceContactId",
"childContactId",
"triggerType",
"triggeredByUserId",
"matchedTriggerId",
"replyLabelId",
"sourceThreadId",
"pausedContactIds",
"reengagedAfterUnsubscribeAt",
"enrolledAt",
"createdAt",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|subsequenceCampaignId|sourceContactId|childContactId|triggerType|triggeredByUserId|matchedTriggerId|replyLabelId|sourceThreadId|pausedContactIds|reengagedAfterUnsubscribeAt|enrolledAt|createdAt|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"subsequenceCampaignId",
"sourceContactId",
"childContactId",
"triggerType",
"triggeredByUserId",
"matchedTriggerId",
"replyLabelId",
"sourceThreadId",
"pausedContactIds",
"reengagedAfterUnsubscribeAt",
"enrolledAt",
"createdAt",
"updatedAt"
]
}
}
},
{
"type": "object",
"properties": {
"subsequences": {
"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"
},
"status": {
"type": "string",
"enum": [
"draft",
"active",
"paused",
"archived",
"completed"
]
},
"pauseContext": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"manual"
]
}
]
},
"pausedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"user"
]
}
]
},
"evidence": {
"type": "null"
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
},
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"bounce_threshold"
]
}
]
},
"pausedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"system"
]
}
]
},
"evidence": {
"type": "object",
"properties": {
"thresholdPercent": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"bounceRatePercent": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"sentCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"bouncedCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"recipientBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"senderBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"unclassifiedBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"scope": {
"anyOf": [
{
"type": "string",
"enum": [
"campaign_lifetime"
]
}
]
}
},
"required": [
"thresholdPercent",
"bounceRatePercent",
"sentCount",
"bouncedCount",
"recipientBounceCount",
"senderBounceCount",
"unclassifiedBounceCount",
"scope"
],
"patternProperties": {
"^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"thresholdPercent",
"bounceRatePercent",
"sentCount",
"bouncedCount",
"recipientBounceCount",
"senderBounceCount",
"unclassifiedBounceCount",
"scope"
]
}
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
},
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"unknown"
]
}
]
},
"pausedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"unknown"
]
}
]
},
"evidence": {
"type": "null"
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
}
],
"description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
},
{
"type": "null"
}
]
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"enrolledCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"contactCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"triggers": {
"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"
},
"conditionType": {
"type": "string",
"enum": [
"reply_any",
"reply_genuine",
"reply_label",
"reply_text"
]
},
"replyLabelIds": {
"type": "array",
"items": {
"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"
}
},
"textContains": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"textNotContains": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
}
},
"required": [
"id",
"conditionType",
"replyLabelIds",
"textContains",
"textNotContains",
"enabled"
],
"patternProperties": {
"^(?!(?:id|conditionType|replyLabelIds|textContains|textNotContains|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"conditionType",
"replyLabelIds",
"textContains",
"textNotContains",
"enabled"
]
}
}
}
},
"required": [
"id",
"name",
"status",
"createdAt",
"enrolledCount",
"contactCount",
"triggers"
],
"patternProperties": {
"^(?!(?:id|name|status|pauseContext|createdAt|enrolledCount|contactCount|triggers)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"status",
"pauseContext",
"createdAt",
"enrolledCount",
"contactCount",
"triggers"
]
}
}
}
},
"required": [
"subsequences"
],
"patternProperties": {
"^(?!(?:subsequences)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"subsequences"
]
}
]
}
}
]
},
{
"type": "object"
}
]
},
{
"type": "object",
"properties": {
"data": {
"allOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"campaignLeads": {
"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"
},
"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"
}
]
},
"status": {
"type": "string",
"enum": [
"not_contacted",
"contacted",
"completed",
"task_pending",
"task_failed",
"paused",
"out_of_office",
"bounced",
"unsubscribed",
"ladder_queued",
"moved_to_subsequence"
]
},
"currentPass": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"pendingStepId": {
"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"
}
]
},
"pendingStepPass": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"email": {
"$ref": "#/$defs/EmailAddress"
},
"firstName": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"lastName": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"company": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"jobTitle": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"companyDomain": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"companyWebsiteUrl": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"personalLinkedInUrl": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"companyLinkedInUrl": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"city": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"state": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"country": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"timezone": {
"anyOf": [
{
"$ref": "#/$defs/LeadStoredText"
},
{
"type": "null"
}
]
},
"customFieldValues": {
"type": "object",
"additionalProperties": true
}
},
"required": [
"id",
"leadId",
"status",
"currentPass",
"pendingStepId",
"pendingStepPass",
"email",
"firstName",
"lastName",
"company",
"jobTitle",
"companyDomain",
"companyWebsiteUrl",
"personalLinkedInUrl",
"companyLinkedInUrl",
"city",
"state",
"country",
"timezone",
"customFieldValues"
],
"patternProperties": {
"^(?!(?:id|leadId|status|currentPass|pendingStepId|pendingStepPass|email|firstName|lastName|company|jobTitle|companyDomain|companyWebsiteUrl|personalLinkedInUrl|companyLinkedInUrl|city|state|country|timezone|customFieldValues)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"leadId",
"status",
"currentPass",
"pendingStepId",
"pendingStepPass",
"email",
"firstName",
"lastName",
"company",
"jobTitle",
"companyDomain",
"companyWebsiteUrl",
"personalLinkedInUrl",
"companyLinkedInUrl",
"city",
"state",
"country",
"timezone",
"customFieldValues"
]
}
}
},
"customFieldKeys": {
"type": "array",
"items": {
"$ref": "#/$defs/LeadStoredText"
}
}
},
"required": [
"campaignLeads",
"customFieldKeys"
],
"patternProperties": {
"^(?!(?:campaignLeads|customFieldKeys)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"campaignLeads",
"customFieldKeys"
]
}
},
{
"type": "object",
"properties": {
"count": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"count"
],
"patternProperties": {
"^(?!(?:count)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"count"
]
}
]
}
},
{
"type": "object",
"properties": {
"sourceField": {
"type": "string"
},
"summary": {
"type": "object",
"properties": {
"total": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"valid": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"invalid": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"missing": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"total",
"valid",
"invalid",
"missing"
],
"patternProperties": {
"^(?!(?:total|valid|invalid|missing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"total",
"valid",
"invalid",
"missing"
]
}
},
"contacts": {
"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"
},
"email": {
"type": "string"
},
"current": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"valid",
"invalid",
"missing"
]
},
"resolved": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"email",
"current",
"source",
"status",
"resolved"
],
"patternProperties": {
"^(?!(?:id|email|current|source|status|resolved)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"email",
"current",
"source",
"status",
"resolved"
]
}
}
}
},
"required": [
"sourceField",
"summary",
"contacts"
],
"patternProperties": {
"^(?!(?:sourceField|summary|contacts)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"sourceField",
"summary",
"contacts"
]
}
},
{
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"type": {
"type": "string",
"enum": [
"email_content"
]
},
"bodyFormat": {
"type": "string",
"enum": [
"inherit",
"plain",
"html"
]
},
"previousThreadSelection": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"latest",
"custom"
]
},
"stepIds": {
"type": "array",
"items": {
"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"
}
}
},
"required": [
"mode"
],
"patternProperties": {
"^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"mode",
"stepIds"
]
}
},
{
"type": "null"
}
]
},
"variants": {
"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"
},
"variantOrder": {
"type": "integer",
"minimum": 1
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"enabled": {
"type": "boolean"
},
"subject": {
"anyOf": [
{
"type": "object",
"properties": {
"root": {
"$ref": "#/$defs/Union_"
}
},
"required": [
"root"
],
"patternProperties": {
"^(?!(?:root)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"root"
]
}
]
}
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"type": "object",
"properties": {
"root": {
"$ref": "#/$defs/Union_"
}
},
"required": [
"root"
],
"patternProperties": {
"^(?!(?:root)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"root"
]
}
]
}
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"saved"
]
}
},
"required": [
"id",
"variantOrder",
"revision",
"enabled",
"subject",
"body",
"status"
],
"patternProperties": {
"^(?!(?:id|variantOrder|revision|enabled|subject|body|status)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"variantOrder",
"revision",
"enabled",
"subject",
"body",
"status"
]
}
}
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"type",
"bodyFormat",
"previousThreadSelection",
"variants"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|type|bodyFormat|previousThreadSelection|variants)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"type",
"bodyFormat",
"previousThreadSelection",
"variants"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"manual_review"
]
},
"notificationMessage": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"notificationMessage"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|notificationMessage)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"notificationMessage"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"linked_in_connection_request"
]
},
"connectionNote": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"connectionNote"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|connectionNote)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"connectionNote"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"linked_in_in_mail"
]
},
"subject": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"subject",
"body"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"subject",
"body"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"phone_call"
]
},
"script": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"script"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|script)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"script"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"text_message"
]
},
"message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"mediaUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"message",
"mediaUrl"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|message|mediaUrl)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"message",
"mediaUrl"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"http_post_request"
]
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"headers": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"bodyTemplate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"url",
"headers",
"bodyTemplate"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|url|headers|bodyTemplate)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"url",
"headers",
"bodyTemplate"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"heyreach_campaign"
]
},
"connectionId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"campaignId": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"campaignName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"linkedInAccountId": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"connectionId",
"campaignId",
"campaignName",
"linkedInAccountId"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|connectionId|campaignId|campaignName|linkedInAccountId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"connectionId",
"campaignId",
"campaignName",
"linkedInAccountId"
]
}
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/NonEmptyString"
},
"stepId": {
"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"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"delayMinutes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"enabled": {
"type": "boolean"
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"dbId": {
"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"
},
"status": {
"type": "string",
"enum": [
"saved"
]
},
"type": {
"type": "string",
"enum": [
"attio_task"
]
},
"content": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"assigneeMemberIds": {
"type": "array",
"items": {
"type": "string"
}
},
"onMissingAssignee": {
"type": "string",
"enum": [
"skip",
"fail"
]
},
"deadlineOffsetDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"personLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
},
"companyLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"sourceVariable": {
"type": "string"
},
"matchBy": {
"type": "string",
"enum": [
"email",
"domain",
"record_id"
]
},
"createIfMissing": {
"type": "boolean"
}
},
"required": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
],
"patternProperties": {
"^(?!(?:enabled|sourceVariable|matchBy|createIfMissing)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"enabled",
"sourceVariable",
"matchBy",
"createIfMissing"
]
}
}
},
"required": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"content",
"assigneeMemberIds",
"onMissingAssignee",
"deadlineOffsetDays",
"personLink",
"companyLink"
],
"patternProperties": {
"^(?!(?:id|stepId|revision|delayMinutes|enabled|runMode|rearmAfterDays|dbId|status|type|content|assigneeMemberIds|onMissingAssignee|deadlineOffsetDays|personLink|companyLink)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepId",
"revision",
"delayMinutes",
"enabled",
"runMode",
"rearmAfterDays",
"dbId",
"status",
"type",
"content",
"assigneeMemberIds",
"onMissingAssignee",
"deadlineOffsetDays",
"personLink",
"companyLink"
]
}
}
]
}
},
{
"type": "object",
"properties": {
"count": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"count"
],
"patternProperties": {
"^(?!(?:count)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"count"
]
}
]
}
},
{
"type": "array",
"items": {
"type": "object",
"properties": {
"stepOrder": {
"type": "integer",
"minimum": 1
},
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"variants": {
"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"
},
"stepOrder": {
"type": "integer",
"minimum": 1
},
"variantOrder": {
"type": "integer",
"minimum": 1
},
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"sent": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"replied": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"repliedPercentage": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"positiveReplies": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"positiveRepliesPercentage": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"opened": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"openedPercentage": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"clicked": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"clickedPercentage": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
}
},
"required": [
"id",
"stepOrder",
"variantOrder",
"name",
"enabled",
"sent",
"replied",
"repliedPercentage",
"positiveReplies",
"positiveRepliesPercentage",
"opened",
"openedPercentage",
"clicked",
"clickedPercentage"
],
"patternProperties": {
"^(?!(?:id|stepOrder|variantOrder|name|enabled|sent|replied|repliedPercentage|positiveReplies|positiveRepliesPercentage|opened|openedPercentage|clicked|clickedPercentage)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"stepOrder",
"variantOrder",
"name",
"enabled",
"sent",
"replied",
"repliedPercentage",
"positiveReplies",
"positiveRepliesPercentage",
"opened",
"openedPercentage",
"clicked",
"clickedPercentage"
]
}
}
},
"totalSent": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"totalReplied": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"totalPositiveReplies": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"totalOpened": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"totalClicked": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"stepOrder",
"name",
"enabled",
"variants",
"totalSent",
"totalReplied",
"totalPositiveReplies",
"totalOpened",
"totalClicked"
],
"patternProperties": {
"^(?!(?:stepOrder|name|enabled|variants|totalSent|totalReplied|totalPositiveReplies|totalOpened|totalClicked)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"stepOrder",
"name",
"enabled",
"variants",
"totalSent",
"totalReplied",
"totalPositiveReplies",
"totalOpened",
"totalClicked"
]
}
}
},
{
"type": "object",
"properties": {
"campaignId": {
"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"
},
"sequenceRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"initialDelayMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"steps": {
"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"
},
"position": {
"type": "integer",
"minimum": 1
},
"type": {
"type": "string",
"enum": [
"email_content",
"manual_review",
"linked_in_connection_request",
"linked_in_in_mail",
"phone_call",
"text_message",
"http_post_request",
"attio_task",
"heyreach_campaign"
]
},
"waitFor": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"runMode": {
"type": "string",
"enum": [
"once",
"after_days",
"every_pass"
]
},
"rearmAfterDays": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"bodyFormat": {
"type": "string",
"enum": [
"inherit",
"plain",
"html"
]
},
"previousThreadSelection": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"all",
"latest",
"custom"
]
},
"stepIds": {
"type": "array",
"items": {
"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"
}
}
},
"required": [
"mode"
],
"patternProperties": {
"^(?!(?:mode|stepIds)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"mode",
"stepIds"
]
}
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"variants": {
"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"
},
"variantOrder": {
"type": "integer",
"minimum": 1
},
"enabled": {
"type": "boolean"
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"content": {
"$ref": "#/$defs/Union_"
},
"plainText": {
"type": "object",
"properties": {
"subject": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"body": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"patternProperties": {
"^(?!(?:subject|body)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"subject",
"body"
]
}
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"variantOrder",
"enabled",
"revision",
"content",
"plainText",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|variantOrder|enabled|revision|content|plainText|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"variantOrder",
"enabled",
"revision",
"content",
"plainText",
"updatedAt"
]
}
}
}
},
"required": [
"id",
"position",
"type",
"waitFor",
"runMode",
"rearmAfterDays",
"bodyFormat",
"previousThreadSelection",
"enabled",
"revision",
"updatedAt",
"variants"
],
"patternProperties": {
"^(?!(?:id|position|type|waitFor|runMode|rearmAfterDays|bodyFormat|previousThreadSelection|enabled|revision|updatedAt|variants)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"position",
"type",
"waitFor",
"runMode",
"rearmAfterDays",
"bodyFormat",
"previousThreadSelection",
"enabled",
"revision",
"updatedAt",
"variants"
]
}
}
}
},
"required": [
"campaignId",
"sequenceRevision",
"initialDelayMinutes",
"steps"
],
"patternProperties": {
"^(?!(?:campaignId|sequenceRevision|initialDelayMinutes|steps)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"campaignId",
"sequenceRevision",
"initialDelayMinutes",
"steps"
]
}
},
{
"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"
},
"status": {
"type": "string",
"enum": [
"draft",
"active",
"paused",
"archived",
"completed"
]
},
"pauseContext": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"manual"
]
}
]
},
"pausedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"user"
]
}
]
},
"evidence": {
"type": "null"
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
},
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"bounce_threshold"
]
}
]
},
"pausedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"system"
]
}
]
},
"evidence": {
"type": "object",
"properties": {
"thresholdPercent": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"bounceRatePercent": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"sentCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"bouncedCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"recipientBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"senderBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"unclassifiedBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"scope": {
"anyOf": [
{
"type": "string",
"enum": [
"campaign_lifetime"
]
}
]
}
},
"required": [
"thresholdPercent",
"bounceRatePercent",
"sentCount",
"bouncedCount",
"recipientBounceCount",
"senderBounceCount",
"unclassifiedBounceCount",
"scope"
],
"patternProperties": {
"^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"thresholdPercent",
"bounceRatePercent",
"sentCount",
"bouncedCount",
"recipientBounceCount",
"senderBounceCount",
"unclassifiedBounceCount",
"scope"
]
}
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
},
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"unknown"
]
}
]
},
"pausedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"unknown"
]
}
]
},
"evidence": {
"type": "null"
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
}
],
"description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
},
{
"type": "null"
}
]
},
"kind": {
"type": "string",
"enum": [
"sequence"
]
},
"initialDelayMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"stopOtherCampaignsOnEnroll": {
"type": "boolean"
},
"inboxIds": {
"type": "array",
"items": {
"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"
}
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"name",
"status",
"kind",
"initialDelayMinutes",
"stopOtherCampaignsOnEnroll",
"inboxIds",
"createdAt",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|name|status|pauseContext|kind|initialDelayMinutes|stopOtherCampaignsOnEnroll|inboxIds|createdAt|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"status",
"pauseContext",
"kind",
"initialDelayMinutes",
"stopOtherCampaignsOnEnroll",
"inboxIds",
"createdAt",
"updatedAt"
]
}
}
},
{
"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"
},
"subsequenceCampaignId": {
"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"
},
"sourceContactId": {
"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"
}
]
},
"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"
}
]
},
"triggerType": {
"type": "string",
"enum": [
"manual",
"reply",
"workflow"
]
},
"triggeredByUserId": {
"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"
}
]
},
"matchedTriggerId": {
"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"
}
]
},
"replyLabelId": {
"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"
}
]
},
"sourceThreadId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"pausedContactIds": {
"anyOf": [
{
"type": "array",
"items": {
"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"
}
]
},
"reengagedAfterUnsubscribeAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"enrolledAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"updatedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"subsequenceCampaignId",
"sourceContactId",
"childContactId",
"triggerType",
"triggeredByUserId",
"matchedTriggerId",
"replyLabelId",
"sourceThreadId",
"pausedContactIds",
"reengagedAfterUnsubscribeAt",
"enrolledAt",
"createdAt",
"updatedAt"
],
"patternProperties": {
"^(?!(?:id|subsequenceCampaignId|sourceContactId|childContactId|triggerType|triggeredByUserId|matchedTriggerId|replyLabelId|sourceThreadId|pausedContactIds|reengagedAfterUnsubscribeAt|enrolledAt|createdAt|updatedAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"subsequenceCampaignId",
"sourceContactId",
"childContactId",
"triggerType",
"triggeredByUserId",
"matchedTriggerId",
"replyLabelId",
"sourceThreadId",
"pausedContactIds",
"reengagedAfterUnsubscribeAt",
"enrolledAt",
"createdAt",
"updatedAt"
]
}
}
},
{
"type": "object",
"properties": {
"subsequences": {
"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"
},
"status": {
"type": "string",
"enum": [
"draft",
"active",
"paused",
"archived",
"completed"
]
},
"pauseContext": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"manual"
]
}
]
},
"pausedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"user"
]
}
]
},
"evidence": {
"type": "null"
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
},
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"bounce_threshold"
]
}
]
},
"pausedAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"system"
]
}
]
},
"evidence": {
"type": "object",
"properties": {
"thresholdPercent": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"bounceRatePercent": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"sentCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"bouncedCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"recipientBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"senderBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"unclassifiedBounceCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"scope": {
"anyOf": [
{
"type": "string",
"enum": [
"campaign_lifetime"
]
}
]
}
},
"required": [
"thresholdPercent",
"bounceRatePercent",
"sentCount",
"bouncedCount",
"recipientBounceCount",
"senderBounceCount",
"unclassifiedBounceCount",
"scope"
],
"patternProperties": {
"^(?!(?:thresholdPercent|bounceRatePercent|sentCount|bouncedCount|recipientBounceCount|senderBounceCount|unclassifiedBounceCount|scope)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"thresholdPercent",
"bounceRatePercent",
"sentCount",
"bouncedCount",
"recipientBounceCount",
"senderBounceCount",
"unclassifiedBounceCount",
"scope"
]
}
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
},
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"unknown"
]
}
]
},
"pausedAt": {
"anyOf": [
{
"$ref": "#/$defs/UtcDateTimeEncoded"
},
{
"type": "null"
}
]
},
"source": {
"anyOf": [
{
"type": "string",
"enum": [
"unknown"
]
}
]
},
"evidence": {
"type": "null"
}
},
"required": [
"reason",
"pausedAt",
"source",
"evidence"
],
"patternProperties": {
"^(?!(?:reason|pausedAt|source|evidence)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"reason",
"pausedAt",
"source",
"evidence"
]
}
}
],
"description": "Opt-in response context: request Accept: application/vnd.scheduler-zero.campaign-pause-context.v1+json, application/json. Unnegotiated responses omit pauseContext for strict legacy clients. Old servers omit it even for new clients; an absent field on a paused campaign means unknown attribution."
},
{
"type": "null"
}
]
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
},
"enrolledCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"contactCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"triggers": {
"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"
},
"conditionType": {
"type": "string",
"enum": [
"reply_any",
"reply_genuine",
"reply_label",
"reply_text"
]
},
"replyLabelIds": {
"type": "array",
"items": {
"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"
}
},
"textContains": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"textNotContains": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
}
},
"required": [
"id",
"conditionType",
"replyLabelIds",
"textContains",
"textNotContains",
"enabled"
],
"patternProperties": {
"^(?!(?:id|conditionType|replyLabelIds|textContains|textNotContains|enabled)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"conditionType",
"replyLabelIds",
"textContains",
"textNotContains",
"enabled"
]
}
}
}
},
"required": [
"id",
"name",
"status",
"createdAt",
"enrolledCount",
"contactCount",
"triggers"
],
"patternProperties": {
"^(?!(?:id|name|status|pauseContext|createdAt|enrolledCount|contactCount|triggers)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"status",
"pauseContext",
"createdAt",
"enrolledCount",
"contactCount",
"triggers"
]
}
}
}
},
"required": [
"subsequences"
],
"patternProperties": {
"^(?!(?:subsequences)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"subsequences"
]
}
]
}
}
]
},
{
"not": {
"type": "object"
}
}
]
}
},
"required": [
"data"
],
"additionalProperties": false
}
]
}
```
### Underlying API operations
- `campaignContacts.list`: `GET /v1/workspaces/:workspaceId/campaigns/:campaignId/contacts`
- `campaignContacts.count`: `GET /v1/workspaces/:workspaceId/campaigns/:campaignId/contacts/count`
- `campaignContacts.validateTimezones`: `GET /v1/workspaces/:workspaceId/campaigns/:campaignId/contacts/validate-timezones`
- `campaignSteps.list`: `GET /v1/workspaces/:workspaceId/campaigns/:campaignId/steps`
- `campaignSteps.count`: `GET /v1/workspaces/:workspaceId/campaigns/:campaignId/steps/count`
- `campaignSteps.stats`: `GET /v1/workspaces/:workspaceId/campaigns/:campaignId/step-stats`
- `campaignSteps.getSequence`: `GET /v1/workspaces/:workspaceId/campaigns/:campaignId/sequence`
- `campaignSequences.list`: `GET /v1/workspaces/:workspaceId/campaigns/sequences`
- `campaignSequences.enrollments`: `GET /v1/workspaces/:workspaceId/campaigns/sequences/:sequenceId/enrollments`
- `campaignSubsequences.list`: `GET /v1/workspaces/:workspaceId/campaigns/:campaignId/subsequences`