API data schemas
Current release · Updated October 4, 2026
Shared request and response shapes. Field descriptions include bounds and state-dependent requirements. See each endpoint for permissions and additional validation.
WorkflowContract
object. Closed named top-level JSON fields; default required/non-null. No nested property schema. Inputs/outputs each max256KB; names cannot use prototype segments.
{
"type": "object",
"maxProperties": 50,
"propertyNames": {
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,59}$"
},
"additionalProperties": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"string",
"number",
"boolean",
"object",
"array"
]
},
"required": {
"type": "boolean",
"default": true
},
"nullable": {
"type": "boolean",
"default": false
}
},
"required": [
"type"
]
},
"description": "Closed named top-level JSON fields; default required/non-null. No nested property schema. Inputs/outputs each max256KB; names cannot use prototype segments."
}Error
| Field | Type | Required | Details |
|---|---|---|---|
error | object | Yes |
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Recovery message"
},
"request_id": {
"type": "string",
"description": "Request correlation ID; may be absent on a rate limit response"
}
},
"required": [
"message"
]
}
},
"required": [
"error"
]
}OK
| Field | Type | Required | Details |
|---|---|---|---|
ok | true | Yes |
{
"type": "object",
"properties": {
"ok": {
"type": "boolean",
"const": true
}
},
"required": [
"ok"
]
}Record
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | Yes | |
tenant_id | uuid | No | |
object_key | string | Yes | Pattern: ^[a-z][a-z0-9_]{1,39}$. |
user_names | object | No | Read decoration for User fields: current member name or Former member; stored data keeps UUIDs. |
data | object | Yes | Object field values. User fields use a current workspace member UUID; unchanged departed assignments can remain on their original record. Only keys in the workspace object definition are allowed; required fields and field types are validated. |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
created_by | string or null | No | |
created_by_service_account_id | string or null | No | |
created_at | date-time | No | |
updated_at | date-time | No |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"tenant_id": {
"type": "string",
"format": "uuid"
},
"object_key": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
},
"user_names": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Read decoration for User fields: current member name or Former member; stored data keeps UUIDs."
},
"data": {
"type": "object",
"additionalProperties": true,
"description": "Object field values. User fields use a current workspace member UUID; unchanged departed assignments can remain on their original record. Only keys in the workspace object definition are allowed; required fields and field types are validated."
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"created_by": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"created_by_service_account_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"object_key",
"data",
"version"
]
}DeveloperPermissions
object. Current object keys only. Each granted object requires read. Includes all fields/owners for that object; no field/team policy is implied. Financial objects allow only read/note. No wildcard grants or automatic grants for future objects.
{
"type": "object",
"minProperties": 1,
"maxProperties": 100,
"propertyNames": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
},
"additionalProperties": {
"type": "array",
"items": {
"type": "string",
"enum": [
"read",
"create",
"update",
"delete",
"note"
],
"description": "Explicit actions for this object"
},
"minItems": 1,
"maxItems": 5,
"uniqueItems": true
},
"description": "Current object keys only. Each granted object requires read. Includes all fields/owners for that object; no field/team policy is implied. Financial objects allow only read/note. No wildcard grants or automatic grants for future objects."
}DeveloperKeyPermissions
object. Current capped key permissions. Can be empty on a key revoked by an account permission reduction.
{
"type": "object",
"maxProperties": 100,
"propertyNames": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
},
"additionalProperties": {
"type": "array",
"items": {
"type": "string",
"enum": [
"read",
"create",
"update",
"delete",
"note"
],
"description": "Approved actions"
},
"minItems": 1,
"maxItems": 5,
"uniqueItems": true
},
"description": "Current capped key permissions. Can be empty on a key revoked by an account permission reduction."
}ServiceAccount
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | Yes | |
name | string | Yes | Integration identity Max 100 characters. |
permissions | DeveloperPermissions | Yes | |
disabled | boolean | Yes | Disabled identities cannot use any key |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
created_at | string | No | Timestamp |
updated_at | string | No | Timestamp |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"description": "Integration identity",
"maxLength": 100
},
"permissions": {
"$ref": "#/components/schemas/DeveloperPermissions"
},
"disabled": {
"type": "boolean",
"description": "Disabled identities cannot use any key"
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"created_at": {
"type": "string",
"description": "Timestamp"
},
"updated_at": {
"type": "string",
"description": "Timestamp"
}
},
"required": [
"id",
"name",
"permissions",
"disabled",
"version"
]
}WorkflowPermissions
object. May be empty. Each granted object requires read. Must be a subset of this version’s immutable workflow_scope.permissions; Finance create can be granted by a reviewed draft action.
{
"type": "object",
"propertyNames": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
},
"additionalProperties": {
"type": "array",
"items": {
"type": "string",
"enum": [
"read",
"create",
"update",
"delete",
"note"
],
"description": "Published native object actions"
},
"minItems": 1,
"maxItems": 5,
"uniqueItems": true
},
"description": "May be empty. Each granted object requires read. Must be a subset of this version’s immutable workflow_scope.permissions; Finance create can be granted by a reviewed draft action."
}WorkflowAccount
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | Yes | |
name | string | Yes | Generated version identity |
permissions | WorkflowPermissions | Yes | |
disabled | boolean | Yes | Block admission and further checked effects |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
workflow_id | uuid | Yes | |
workflow_name | string | Yes | Workflow name |
workflow_version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
published | boolean | Yes | Current published version |
campaign_id | string or null | No | |
ai_connection_id | string or null | No | |
workflow_scope | object | Yes | |
created_at | string | No | Timestamp |
updated_at | string | No | Timestamp |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"description": "Generated version identity"
},
"permissions": {
"$ref": "#/components/schemas/WorkflowPermissions"
},
"disabled": {
"type": "boolean",
"description": "Block admission and further checked effects"
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"workflow_id": {
"type": "string",
"format": "uuid"
},
"workflow_name": {
"type": "string",
"description": "Workflow name"
},
"workflow_version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"published": {
"type": "boolean",
"description": "Current published version"
},
"campaign_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"ai_connection_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"workflow_scope": {
"type": "object",
"properties": {
"permissions": {
"$ref": "#/components/schemas/WorkflowPermissions"
},
"versions": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
},
"kinds": {
"type": "array",
"items": {
"type": "string",
"description": "Reviewed step kind"
}
},
"credentials": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
},
"calendars": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
},
"connections": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
}
},
"required": [
"permissions",
"versions",
"kinds",
"credentials",
"calendars",
"connections"
]
},
"created_at": {
"type": "string",
"description": "Timestamp"
},
"updated_at": {
"type": "string",
"description": "Timestamp"
}
},
"required": [
"id",
"name",
"permissions",
"disabled",
"version",
"workflow_id",
"workflow_name",
"workflow_version",
"published",
"workflow_scope"
]
}APIKey
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | Yes | |
service_account_id | uuid | Yes | |
name | string | Yes | Key name Max 100 characters. |
prefix | string | Yes | Public display prefix, not a usable key |
permissions | DeveloperKeyPermissions | Yes | |
expires_at | string | Yes | Expiry timestamp |
revoked_at | string or null | No | |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
rotated_from | string or null | No | |
created_at | string | No | Timestamp |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"service_account_id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"description": "Key name",
"maxLength": 100
},
"prefix": {
"type": "string",
"description": "Public display prefix, not a usable key"
},
"permissions": {
"$ref": "#/components/schemas/DeveloperKeyPermissions"
},
"expires_at": {
"type": "string",
"description": "Expiry timestamp"
},
"revoked_at": {
"type": [
"string",
"null"
]
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"rotated_from": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"created_at": {
"type": "string",
"description": "Timestamp"
}
},
"required": [
"id",
"service_account_id",
"name",
"prefix",
"permissions",
"expires_at",
"version"
]
}KeyReceipt
| Field | Type | Required | Details |
|---|---|---|---|
key | APIKey | Yes | |
secret | string or null | Yes | One-time opaque Bearer token. Null on a completed creation/rotation retry; unrecoverable if the first response was lost. Revoke it and issue a replacement. Never place it in a URL or client bundle. |
{
"type": "object",
"properties": {
"key": {
"$ref": "#/components/schemas/APIKey"
},
"secret": {
"type": [
"string",
"null"
],
"description": "One-time opaque Bearer token. Null on a completed creation/rotation retry; unrecoverable if the first response was lost. Revoke it and issue a replacement. Never place it in a URL or client bundle."
}
},
"required": [
"key",
"secret"
]
}DealStage
| Field | Type | Required | Details |
|---|---|---|---|
pipeline_id | string or null | Yes | |
pipeline_name | string | Yes | Saved pipeline name |
stage_id | string or null | Yes | |
stage_name | string | Yes | Saved stage name |
{
"type": "object",
"properties": {
"pipeline_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"pipeline_name": {
"type": "string",
"description": "Saved pipeline name"
},
"stage_id": {
"type": [
"string",
"null"
]
},
"stage_name": {
"type": "string",
"description": "Saved stage name"
}
},
"required": [
"pipeline_id",
"pipeline_name",
"stage_id",
"stage_name"
]
}DealStageHistory
Newest record-version first,25 transitions per page. Snapshots preserve stage/pipeline names; no pre-release backfill. Removed with the deal.
| Field | Type | Required | Details |
|---|---|---|---|
items | object[] | Yes | |
next_cursor | string or null | Yes |
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"tenant_id": {
"type": "string",
"format": "uuid"
},
"deal_id": {
"type": "string",
"format": "uuid"
},
"from_stage": {
"anyOf": [
{
"$ref": "#/components/schemas/DealStage"
},
{
"type": "null"
}
]
},
"to_stage": {
"$ref": "#/components/schemas/DealStage"
},
"record_version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"actor_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"service_account_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"actor_name": {
"type": "string",
"description": "Current user/service-account name or Workflow / system"
},
"created_at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"deal_id",
"from_stage",
"to_stage",
"record_version",
"actor_name",
"created_at"
]
}
},
"next_cursor": {
"type": [
"string",
"null"
],
"format": "uuid"
}
},
"required": [
"items",
"next_cursor"
],
"description": "Newest record-version first,25 transitions per page. Snapshots preserve stage/pipeline names; no pre-release backfill. Removed with the deal."
}RecordPage
| Field | Type | Required | Details |
|---|---|---|---|
items | Record[] | Yes | |
total | integer | Yes | Number matching the full query, before cursor |
next_cursor | string or null | Yes | Opaque cursor for the next page; null ends pagination. |
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Record"
}
},
"total": {
"type": "integer",
"description": "Number matching the full query, before cursor"
},
"next_cursor": {
"type": [
"string",
"null"
],
"description": "Opaque cursor for the next page; null ends pagination."
}
},
"required": [
"items",
"total",
"next_cursor"
]
}Field
| Field | Type | Required | Details |
|---|---|---|---|
key | string | Yes | Pattern: ^[a-z][a-z0-9_]{1,39}$. |
name | string | Yes | Field label Max 80 characters. |
type | text | email | phone | number | currency | boolean | date | select | multi_select | user | relation | json | Yes | Field type |
required | boolean | No | Defaults false |
options | string[] | No | Max 100 items. |
object | string | No | Pattern: ^[a-z][a-z0-9_]{1,39}$. |
{
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
},
"name": {
"type": "string",
"description": "Field label",
"maxLength": 80
},
"type": {
"type": "string",
"enum": [
"text",
"email",
"phone",
"number",
"currency",
"boolean",
"date",
"select",
"multi_select",
"user",
"relation",
"json"
],
"description": "Field type"
},
"required": {
"type": "boolean",
"description": "Defaults false"
},
"options": {
"type": "array",
"items": {
"type": "string",
"description": "Option",
"maxLength": 80
},
"minItems": 0,
"maxItems": 100
},
"object": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
}
},
"required": [
"key",
"name",
"type"
]
}Object
| Field | Type | Required | Details |
|---|---|---|---|
key | string | Yes | Pattern: ^[a-z][a-z0-9_]{1,39}$. |
name | string | Yes | Plural label Max 80 characters. |
singular_name | string | Yes | Singular label Max 80 characters. |
fields | Field[] | Yes | Min 1 items. Max 100 items. |
{
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
},
"name": {
"type": "string",
"description": "Plural label",
"maxLength": 80
},
"singular_name": {
"type": "string",
"description": "Singular label",
"maxLength": 80
},
"fields": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Field"
},
"minItems": 1,
"maxItems": 100
}
},
"required": [
"key",
"name",
"singular_name",
"fields"
]
}Filter
| Field | Type | Required | Details |
|---|---|---|---|
match | all | any | Yes | Combine conditions |
conditions | object[] | Yes | Min 1 items. Max 12 items. |
{
"type": "object",
"properties": {
"match": {
"type": "string",
"enum": [
"all",
"any"
],
"description": "Combine conditions"
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
},
"operator": {
"type": "string",
"enum": [
"eq",
"ne",
"contains",
"not_contains",
"gt",
"gte",
"lt",
"lte",
"empty",
"not_empty"
],
"description": "Supported operators depend on field type. Relations and JSON are excluded."
},
"value": {
"type": [
"string",
"number",
"boolean"
],
"description": "Typed comparison value; omit for empty/not_empty."
}
},
"required": [
"field",
"operator"
]
},
"minItems": 1,
"maxItems": 12
}
},
"required": [
"match",
"conditions"
]
}SmartList
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | Yes | |
object_key | string | No | Pattern: ^[a-z][a-z0-9_]{1,39}$. |
name | string | Yes | Unique name per object Max 80 characters. |
filter | Filter | Yes | |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"object_key": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
},
"name": {
"type": "string",
"description": "Unique name per object",
"maxLength": 80
},
"filter": {
"$ref": "#/components/schemas/Filter"
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
}
},
"required": [
"id",
"name",
"filter",
"version"
]
}ListInput
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Nonblank list name Max 80 characters. |
filter | Filter | Yes |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Nonblank list name",
"maxLength": 80
},
"filter": {
"$ref": "#/components/schemas/Filter"
}
},
"required": [
"name",
"filter"
]
}Import
| Field | Type | Required | Details |
|---|---|---|---|
csv | string | Yes | UTF-8 CSV content, not a file path. Header required; <=500 data rows. Max 300000 characters. |
mapping | string or null[] | No | Max 100 items. |
duplicates | skip | update | error | No | People email duplicate policy, default skip. Blank update cells preserve existing values. |
{
"type": "object",
"properties": {
"csv": {
"type": "string",
"description": "UTF-8 CSV content, not a file path. Header required; <=500 data rows.",
"maxLength": 300000
},
"mapping": {
"type": "array",
"items": {
"type": [
"string",
"null"
],
"description": "Field key per CSV column, null skips a column. Omit to match field keys/labels."
},
"minItems": 0,
"maxItems": 100
},
"duplicates": {
"type": "string",
"enum": [
"skip",
"update",
"error"
],
"description": "People email duplicate policy, default skip. Blank update cells preserve existing values."
}
},
"required": [
"csv"
]
}ImportReport
| Field | Type | Required | Details |
|---|---|---|---|
headers | string[] | No | |
mapping | string or null[] | No | |
rows | integer | No | Data rows |
created | integer | No | Planned creates |
updated | integer | No | Planned updates |
skipped | integer | No | Planned skips |
error_count | integer | No | All errors |
errors | object[] | No | |
preview | object[] | No | |
can_import | boolean | No | True only if the whole import is valid |
{
"type": "object",
"properties": {
"headers": {
"type": "array",
"items": {
"type": "string",
"description": "CSV heading"
}
},
"mapping": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
},
"rows": {
"type": "integer",
"description": "Data rows"
},
"created": {
"type": "integer",
"description": "Planned creates"
},
"updated": {
"type": "integer",
"description": "Planned updates"
},
"skipped": {
"type": "integer",
"description": "Planned skips"
},
"error_count": {
"type": "integer",
"description": "All errors"
},
"errors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"line": {
"type": "integer",
"description": "CSV line"
},
"message": {
"type": "string",
"description": "Validation error"
}
},
"required": []
}
},
"preview": {
"type": "array",
"items": {
"type": "object",
"properties": {
"line": {
"type": "integer",
"description": "CSV line"
},
"action": {
"type": "string",
"description": "create, update or skip"
},
"data": {
"type": "object",
"additionalProperties": true,
"description": "Object field values. User fields use a current workspace member UUID; unchanged departed assignments can remain on their original record. Only keys in the workspace object definition are allowed; required fields and field types are validated."
}
},
"required": []
}
},
"can_import": {
"type": "boolean",
"description": "True only if the whole import is valid"
}
},
"required": []
}ContactMerge
Two distinct active People records, current versions and a remaining target. Omit take_source for remaining values with automatic filling of empty fields. Chosen source fields replace even empty values. Tags combine; consent is true only when both records explicitly consent. Different custom amount currencies must be aligned first.
| Field | Type | Required | Details |
|---|---|---|---|
contacts | object[] | Yes | Min 2 items. Max 2 items. |
target_id | uuid | Yes | |
take_source | string[] | No | Max 100 items. |
{
"type": "object",
"properties": {
"contacts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
}
},
"required": [
"id",
"version"
]
},
"minItems": 2,
"maxItems": 2
},
"target_id": {
"type": "string",
"format": "uuid"
},
"take_source": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
},
"minItems": 0,
"maxItems": 100
}
},
"required": [
"contacts",
"target_id"
],
"description": "Two distinct active People records, current versions and a remaining target. Omit take_source for remaining values with automatic filling of empty fields. Chosen source fields replace even empty values. Tags combine; consent is true only when both records explicitly consent. Different custom amount currencies must be aligned first."
}MergeEffects
| Field | Type | Required | Details |
|---|---|---|---|
notes | integer | No | Source notes moved |
relationships | integer | No | Related records updated, including financial drafts |
financial_history | integer | No | Non-draft financial records retained unchanged |
links | integer | No | Source links combined, duplicates collapse |
stopped_sequences | integer | No | Active source enrollments cancelled |
{
"type": "object",
"properties": {
"notes": {
"type": "integer",
"description": "Source notes moved"
},
"relationships": {
"type": "integer",
"description": "Related records updated, including financial drafts"
},
"financial_history": {
"type": "integer",
"description": "Non-draft financial records retained unchanged"
},
"links": {
"type": "integer",
"description": "Source links combined, duplicates collapse"
},
"stopped_sequences": {
"type": "integer",
"description": "Active source enrollments cancelled"
}
},
"required": []
}Pipeline
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Pipeline name Max 100 characters. |
stages | object[] | Yes | Min 1 items. Max 30 items. |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Pipeline name",
"maxLength": 100
},
"stages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z0-9_-]{1,40}$"
},
"name": {
"type": "string",
"description": "Stage label",
"maxLength": 80
},
"probability": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
}
},
"required": [
"id",
"name",
"probability",
"color"
]
},
"minItems": 1,
"maxItems": 30
}
},
"required": [
"name",
"stages"
]
}Widget
| Field | Type | Required | Details |
|---|---|---|---|
id | string | Yes | Unique widget ID Max 80 characters. |
title | string | Yes | KPI title Max 120 characters. |
object | string | Yes | Pattern: ^[a-z][a-z0-9_]{1,39}$. |
operation | count | sum | avg | Yes | Aggregation |
field | string | No | Pattern: ^[a-z][a-z0-9_]{1,39}$. |
group_by | string | No | Pattern: ^[a-z][a-z0-9_]{1,39}$. |
display | metric | bar | donut | Yes | Presentation |
currency | string | No | Currency for monetary results |
filter | object | No | |
date_range | object | No |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique widget ID",
"maxLength": 80
},
"title": {
"type": "string",
"description": "KPI title",
"maxLength": 120
},
"object": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
},
"operation": {
"type": "string",
"enum": [
"count",
"sum",
"avg"
],
"description": "Aggregation"
},
"field": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
},
"group_by": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
},
"display": {
"type": "string",
"enum": [
"metric",
"bar",
"donut"
],
"description": "Presentation"
},
"currency": {
"type": "string",
"description": "Currency for monetary results"
},
"filter": {
"type": "object",
"properties": {
"field": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
},
"value": {
"type": "string",
"description": "Exact text comparison",
"maxLength": 200
}
},
"required": [
"field",
"value"
]
},
"date_range": {
"type": "object",
"properties": {
"period": {
"type": "string",
"enum": [
"custom",
"today",
"last_7_days",
"last_30_days",
"this_month",
"last_month"
],
"description": "Last7/30days include today. Custom needs from/to; rolling periods reject fixed dates."
},
"source": {
"type": "string",
"enum": [
"created_at",
"updated_at",
"field"
],
"description": "Metadata timestamps use workspace timezone; a selected date field keeps its calendar date."
},
"field": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$",
"description": "Required for source=field; must have date type"
},
"from": {
"type": "string",
"format": "date",
"description": "Valid calendar date, YYYY-MM-DD."
},
"to": {
"type": "string",
"format": "date",
"description": "Valid calendar date, YYYY-MM-DD."
}
},
"required": [
"period",
"source"
]
}
},
"required": [
"id",
"title",
"object",
"operation",
"display"
]
}FinanceProfile
| Field | Type | Required | Details |
|---|---|---|---|
business_name | string | Yes | Nonblank issuer name Max 160 characters. |
email | email or | No | |
address | string | No | Issuer address Max 2000 characters. |
tax_id | string | No | Tax reference Max 100 characters. |
payment_instructions | string | No | Payment instructions Max 2000 characters. |
invoice_prefix | string | No | Pattern: ^[A-Z0-9-]{1,12}$. |
purchase_order_prefix | string | No | Pattern: ^[A-Z0-9-]{1,12}$. |
{
"type": "object",
"properties": {
"business_name": {
"type": "string",
"description": "Nonblank issuer name",
"maxLength": 160
},
"email": {
"oneOf": [
{
"type": "string",
"format": "email",
"maxLength": 200
},
{
"const": ""
}
]
},
"address": {
"type": "string",
"description": "Issuer address",
"maxLength": 2000
},
"tax_id": {
"type": "string",
"description": "Tax reference",
"maxLength": 100
},
"payment_instructions": {
"type": "string",
"description": "Payment instructions",
"maxLength": 2000
},
"invoice_prefix": {
"type": "string",
"pattern": "^[A-Z0-9-]{1,12}$",
"default": "INV"
},
"purchase_order_prefix": {
"type": "string",
"pattern": "^[A-Z0-9-]{1,12}$",
"default": "PO"
}
},
"required": [
"business_name"
]
}InvoiceData
Draft inputs; custom optional fields are allowed if defined. Quantity >0 to 1,000,000 with <=3 decimals. Discount is a line amount, tax_rate is 0-100 percent with <=2 decimals. Due date cannot precede issue date. Totals/status/issuer/number are server managed.
| Field | Type | Required | Details |
|---|---|---|---|
document_template | InvoiceTemplate | No | |
name | string | Yes | Required title |
customer_name | string | Yes | Required customer name |
customer_email | No | Max 200 characters. | |
billing_address | string | No | Address |
contact_id | uuid | No | |
deal_id | uuid | No | |
currency | string | Yes | Enabled currency code |
issue_date | date | Yes | Valid calendar date, YYYY-MM-DD. |
due_date | date | Yes | Valid calendar date, YYYY-MM-DD. |
items | object[] | Yes | Min 1 items. Max 100 items. |
notes | string | No | Notes |
{
"type": "object",
"properties": {
"document_template": {
"$ref": "#/components/schemas/InvoiceTemplate"
},
"name": {
"type": "string",
"description": "Required title"
},
"customer_name": {
"type": "string",
"description": "Required customer name"
},
"customer_email": {
"type": "string",
"format": "email",
"maxLength": 200
},
"billing_address": {
"type": "string",
"description": "Address"
},
"contact_id": {
"type": "string",
"format": "uuid"
},
"deal_id": {
"type": "string",
"format": "uuid"
},
"currency": {
"type": "string",
"description": "Enabled currency code"
},
"issue_date": {
"type": "string",
"format": "date",
"description": "Valid calendar date, YYYY-MM-DD."
},
"due_date": {
"type": "string",
"format": "date",
"description": "Valid calendar date, YYYY-MM-DD."
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "Nonblank description",
"maxLength": 500
},
"quantity": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Major currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply."
},
"unit_price": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Major currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply."
},
"discount": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Major currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply."
},
"tax_rate": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Major currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply."
}
},
"required": [
"description",
"quantity",
"unit_price"
]
},
"minItems": 1,
"maxItems": 100
},
"notes": {
"type": "string",
"description": "Notes"
}
},
"required": [
"name",
"customer_name",
"currency",
"issue_date",
"due_date",
"items"
],
"description": "Draft inputs; custom optional fields are allowed if defined. Quantity >0 to 1,000,000 with <=3 decimals. Discount is a line amount, tax_rate is 0-100 percent with <=2 decimals. Due date cannot precede issue date. Totals/status/issuer/number are server managed."
}ExpenseData
Amount must be positive; tax is included in amount and cannot exceed it. Custom optional fields are allowed if defined. Status/approval/totals are server managed.
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Required title |
vendor | string | Yes | Required vendor |
category | string | No | Category |
spent_on | date | Yes | Valid calendar date, YYYY-MM-DD. |
currency | string | Yes | Enabled currency code |
amount | string or number | Yes | Major currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply. |
tax | string or number | No | Major currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply. |
receipt_url | uri | No | HTTP(S) reference; no receipt upload endpoint. |
notes | string | No | Notes |
deal_id | uuid | No |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Required title"
},
"vendor": {
"type": "string",
"description": "Required vendor"
},
"category": {
"type": "string",
"description": "Category"
},
"spent_on": {
"type": "string",
"format": "date",
"description": "Valid calendar date, YYYY-MM-DD."
},
"currency": {
"type": "string",
"description": "Enabled currency code"
},
"amount": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Major currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply."
},
"tax": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Major currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply."
},
"receipt_url": {
"type": "string",
"format": "uri",
"description": "HTTP(S) reference; no receipt upload endpoint."
},
"notes": {
"type": "string",
"description": "Notes"
},
"deal_id": {
"type": "string",
"format": "uuid"
}
},
"required": [
"name",
"vendor",
"spent_on",
"currency",
"amount"
],
"description": "Amount must be positive; tax is included in amount and cannot exceed it. Custom optional fields are allowed if defined. Status/approval/totals are server managed."
}PurchaseOrderData
Draft inputs; custom optional fields are allowed if defined. Expected delivery cannot precede the order date. Totals, status, issuer snapshot and PO number are server managed.
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Required title |
vendor | string | Yes | Required supplier |
vendor_email | No | Max 200 characters. | |
vendor_address | string | No | Supplier address Max 2000 characters. |
company_id | uuid | No | |
deal_id | uuid | No | |
currency | string | Yes | Enabled currency code |
order_date | date | Yes | Valid calendar date, YYYY-MM-DD. |
expected_date | date | No | Valid calendar date, YYYY-MM-DD. |
items | object[] | Yes | Min 1 items. Max 100 items. |
notes | string | No | Notes |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Required title"
},
"vendor": {
"type": "string",
"description": "Required supplier"
},
"vendor_email": {
"type": "string",
"format": "email",
"maxLength": 200
},
"vendor_address": {
"type": "string",
"description": "Supplier address",
"maxLength": 2000
},
"company_id": {
"type": "string",
"format": "uuid"
},
"deal_id": {
"type": "string",
"format": "uuid"
},
"currency": {
"type": "string",
"description": "Enabled currency code"
},
"order_date": {
"type": "string",
"format": "date",
"description": "Valid calendar date, YYYY-MM-DD."
},
"expected_date": {
"type": "string",
"format": "date",
"description": "Valid calendar date, YYYY-MM-DD."
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "Nonblank description",
"maxLength": 500
},
"quantity": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Major currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply."
},
"unit_price": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Major currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply."
},
"discount": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Major currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply."
},
"tax_rate": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Major currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply."
}
},
"required": [
"description",
"quantity",
"unit_price"
]
},
"minItems": 1,
"maxItems": 100
},
"notes": {
"type": "string",
"description": "Notes"
}
},
"required": [
"name",
"vendor",
"currency",
"order_date",
"items"
],
"description": "Draft inputs; custom optional fields are allowed if defined. Expected delivery cannot precede the order date. Totals, status, issuer snapshot and PO number are server managed."
}Payment
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | Yes | |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
amount | string or number | Yes | Major currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply. |
paid_on | date | Yes | Valid calendar date, YYYY-MM-DD. |
method | Bank transfer | Cash | Card | Other | Yes | Payment handled outside DryKraft |
reference | string | Yes | Nonblank payment reference Max 200 characters. |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"amount": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Major currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply."
},
"paid_on": {
"type": "string",
"format": "date",
"description": "Valid calendar date, YYYY-MM-DD."
},
"method": {
"type": "string",
"enum": [
"Bank transfer",
"Cash",
"Card",
"Other"
],
"description": "Payment handled outside DryKraft"
},
"reference": {
"type": "string",
"description": "Nonblank payment reference",
"maxLength": 200
}
},
"required": [
"id",
"version",
"amount",
"paid_on",
"method",
"reference"
]
}NodeData
Fields are conditional on kind; publish enforces the required node settings. Extra runtime context fields may exist.
| Field | Type | Required | Details |
|---|---|---|---|
kind | trigger.manual | trigger.event | trigger.schedule | trigger.webhook | trigger.subworkflow | trigger.error | workflow.call | workflow.return | condition | switch | loop | split | merge | list.filter | list.map | list.sort | list.limit | list.deduplicate | list.aggregate | data.csv | data.xml | code | date.time | wait | set | crm.search | crm.note | crm.tags | crm.stage | crm.link | crm.assign | crm.create | crm.update | finance.create | calendar.create | http | graphql | log | Yes | Outreach kinds are managed and rejected by the general editor. |
label | string | Yes | Nonempty node label Max 100 characters. |
event | string | No | Required for trigger.event Max 100 characters. |
mode | interval | cron | No | Schedule method; omitted preserves the legacy interval mode |
intervalMinutes | integer | No | Required for interval schedules Min 1. Max 525600. |
cron | string | No | Required for cron schedules: five fields, minute/hour/day/month/weekday, no hashed fields Max 120 characters. |
timezone | string | No | Named IANA timezone for cron or Date/Time display; fixed in the published version Max 80 characters. |
seconds | integer | No | Required for wait Min 1. Max 2592000. |
object | string | No | Required for crm.search/create/update/link/assign; finance.create only invoices, purchase_orders or expenses Pattern: ^[a-z][a-z0-9_]{1,39}$. |
values | object | No | Required for set, list.map, record create/update, workflow.call or workflow.return; call/return map declared typed fields, max256KB. Exact expressions preserve JSON type. |
errorWorkflow | object | No | Optional ordinary-trigger handler. Exact active current-workspace published Error trigger version; cannot be configured on an Error trigger or action. Once per source execution after final failure; paused/unavailable or inactive-plan handlers are skipped. Handler input is bounded failure metadata, not source input/context. Handler descendants cannot start automatic handlers. |
inputs | WorkflowContract | No | trigger.subworkflow input contract; reserved context names forbidden |
outputs | WorkflowContract | No | trigger.subworkflow returned output contract |
workflowId | uuid | No | workflow.call current-workspace reusable workflow ID |
versionId | uuid | No | workflow.call exact immutable reusable version ID; never follows later publication |
workflowName | string | No | Server-resolved child name at publication |
versionNumber | integer | No | Server-resolved child version at publication Min 1. |
calendarId | uuid | No | Required for calendar.create; current enabled calendar in this workspace |
recordId | string | No | Required for crm.update/note/tags/stage/link/assign; native actions require UUID or exact context expression with a plain path; tags target People and stage targets Deals Max 164 characters. |
note | string | No | Required crm.note plain-text internal activity; trimmed, nonempty, max10000 characters after interpolation. Completed output reused on recovery; full rerun adds another note. Max 10000 characters. |
field | string | No | Context path for condition/list.filter; item key for list.sort/deduplicate/aggregate. List paths use item or item.field; max160, no prototype segments. Max 160 characters. |
operator | eq | neq | gte | gt | lte | lt | contains | exists | No | Required for condition |
value | string or number or boolean or object or array or null | No | Condition comparison value, interpolated |
url | uri | No | Required for http/graphql; GraphQL static public HTTP(S):80/443 endpoint, max2048, no embedded credentials; private destinations and redirects blocked at run |
method | GET | POST | PUT | PATCH | DELETE | No | http method, default GET |
credentialId | uuid | No | Optional saved outbound HTTP/GraphQL credential. Publish checks current workspace ownership; runtime rechecks availability. Headers are server-managed, not arbitrary draft headers. |
body | string or object or array or null | No | http body; interpolated |
query | string | No | Required graphql document; literal, never interpolated; trimmed nonempty, max64KB UTF-8. Endpoint validates syntax/schema. Max 65536 characters. |
variables | object | No | graphql variables JSON object, default {}; exact context expressions preserve scalar/array/object/null types. Max256KB before and after resolution. |
operationName | string | No | Optional graphql named operation; required by destination when document has multiple operations Max 100 characters. Pattern: ^$|^[_A-Za-z][_0-9A-Za-z]*$. |
errorPolicy | stop | continue | No | graphql default stop: returned errors fail even with HTTP200. continue requires nonnull data object and retains partial data/errors/extensions; errors-only/null data still fail. HTTP/invalid-envelope failures always fail. Generic failure text excludes provider messages. |
message | string | No | log message; context expressions supported |
search | string | No | crm.search text, optional blank for all; context expressions supported; common contact/customer fields Max 200 characters. |
list | uuid | No | Optional crm.search saved smart list for this object/workspace. Current list rules evaluated at runtime; omit/blank for no list. |
cursor | string | No | crm.search page cursor, optional; use {{nodes.<search-id>.next_cursor}} with identical search/rules Max 500 characters. |
filter | Filter | No | Optional crm.search typed field rules, mutually exclusive with list. Exact context expressions retain original scalar type; schema/operator checked at publish and resolved values checked at run. |
columns | string[] | No | Min 1 items. Max 100 items. |
language | javascript | python | No | code interpreter, default javascript |
code | string | No | code: function body. JavaScript async input/secrets or Python main(input,secrets). Max65536 UTF-8 bytes. Return JSON, no console output. Isolated runsc container; no host files/network/packages; 256MiB,0.5CPU,32processes. Input/output max256KiB and40 JSON levels; finite numbers and no prototype keys. Saved successful output reused on recovery; rerun reexecutes. No core API/worker eval. Max 65536 characters. |
timeoutSeconds | integer | No | code: integer execution deadline including normal startup, default5 seconds Min 1. Max 10. |
secretBindings | object[] | No | Max 8 items. |
source | string | No | code: plain context path to JSON input, no braces/prototype segments; no inherited context or credentials. data.xml: plain context path to XML1.0 UTF-8 text for parse or an ordered document tree for serialize. Parse returns document/root/elements; serialize returns xml/root/elements. Namespaces, attributes, mixed text, repeated children, CDATA/comments/instructions supported; no DTD/external entities. Max1000 elements,32 element levels,5000 content nodes,100 attributes per element,256KiB input/output. data.csv source: plain context path to CSV text for parse or a record array for serialize; max1000 records,256KiB JSON input/output. Parse preserves string cells, skips blank rows and accepts headings-only empty lists. Serialize escapes text formulas and JSON-encodes nested values. Required list/Loop source context path containing an array, such as items or last.items; max1000 items. Loop uses each/done output handles, collects terminal item outputs and scopes item/index/loop values. Max5 nesting,10000 visits,256KB input/output,1MB control state Max 160 characters. |
branches | object[] | No | Min 2 items. Max 10 items. |
splitId | string | No | Merge: existing paired Split step ID. Exactly one Merge per Split; every branch reaches it. Ordered paths start from isolated saved context; they run serially under one execution lease and join once. Collect returns each final output in items; Append requires each final output.items array and caps total at1000 items. Output includes count and branches with id/label/output. Collected Split output and Merge output max256KiB each; five combined Split/Loop scopes and1MB control state. Branch root Set values remain isolated; step outputs are available after Merge. Max 80 characters. |
cases | object[] | No | Min 1 items. Max 10 items. |
direction | asc | desc | No | Required list.sort direction; stable ties, missing/null last; one scalar type |
offset | integer | No | Required list.limit offset Min 0. Max 1000. |
limit | integer | No | list.limit cap 1-1000; crm.search page size 1-100, default25 Min 1. Max 1000. |
assignmentField | string | No | crm.assign: existing user field key on the selected nonfinancial object; built-in owner_id is Assigned owner Max 40 characters. |
userId | string | No | crm.assign set: current workspace user UUID or exact plain context expression; clear ignores it Max 164 characters. |
memberSource | choose | context | No | Optional crm.assign editor input mode; no runtime authorization effect |
relationField | string | No | crm.link: existing relation field key on the selected nonfinancial object Max 40 characters. |
targetId | string | No | crm.link set: target record UUID or exact plain context expression; clear ignores it Max 164 characters. |
pipelineId | string | No | crm.stage: workspace pipeline UUID or exact plain context expression Max 164 characters. |
stageId | string | No | crm.stage: stage ID in destination pipeline or exact context expression Max 164 characters. |
status | keep | Open | Won | Lost | No | crm.stage: preserve current status by default or explicitly set it |
destinationSource | choose | context | No | Optional crm.stage editor input mode; no runtime authorization effect |
tags | string or string[] | No | crm.tags input: one tag per line, array of templates, or exact context expression resolving to a text array. Resolved names trimmed, nonempty, max80; total contact max100. Case-sensitive; no-op creates no update/event. |
operation | add | remove | set | clear | count | sum | avg | min | max | now | format | shift | difference | parse | serialize | collect | append | No | merge collect/append, data.csv/xml parse/serialize, crm.link/assign set/clear, crm.tags add/remove, list.aggregate calculation or required date.time operation; no numeric string coercion |
date | string | No | date.time input: YYYY-MM-DD midnight UTC or ISO timestamp with explicit Z/offset; context expressions allowed Max 500 characters. |
otherDate | string | No | date.time difference end date; signed End minus Start Max 500 characters. |
amount | number or string | No | date.time shift amount, default1; months/years whole numbers; exact expression must resolve to number |
unit | milliseconds | seconds | minutes | hours | days | weeks | months | years | No | date.time unit, defaultdays; difference excludes months/years. Fixed days/weeks are elapsed24/168hours; month/year UTC calendar clamped. |
locale | string | No | date.time display language code, defaulten-GB Max 80 characters. |
format | iso | date | time | full | No | date.time display format, defaultfull; ISO always UTC |
groupBy | string | No | Optional scalar grouping context path, max100groups; omitted is one group Max 160 characters. |
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"trigger.manual",
"trigger.event",
"trigger.schedule",
"trigger.webhook",
"trigger.subworkflow",
"trigger.error",
"workflow.call",
"workflow.return",
"condition",
"switch",
"loop",
"split",
"merge",
"list.filter",
"list.map",
"list.sort",
"list.limit",
"list.deduplicate",
"list.aggregate",
"data.csv",
"data.xml",
"code",
"date.time",
"wait",
"set",
"crm.search",
"crm.note",
"crm.tags",
"crm.stage",
"crm.link",
"crm.assign",
"crm.create",
"crm.update",
"finance.create",
"calendar.create",
"http",
"graphql",
"log"
],
"description": "Outreach kinds are managed and rejected by the general editor."
},
"label": {
"type": "string",
"description": "Nonempty node label",
"maxLength": 100
},
"event": {
"type": "string",
"description": "Required for trigger.event",
"maxLength": 100
},
"mode": {
"type": "string",
"enum": [
"interval",
"cron"
],
"description": "Schedule method; omitted preserves the legacy interval mode"
},
"intervalMinutes": {
"type": "integer",
"description": "Required for interval schedules",
"minimum": 1,
"maximum": 525600
},
"cron": {
"type": "string",
"description": "Required for cron schedules: five fields, minute/hour/day/month/weekday, no hashed fields",
"maxLength": 120
},
"timezone": {
"type": "string",
"description": "Named IANA timezone for cron or Date/Time display; fixed in the published version",
"maxLength": 80
},
"seconds": {
"type": "integer",
"description": "Required for wait",
"minimum": 1,
"maximum": 2592000
},
"object": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$",
"description": "Required for crm.search/create/update/link/assign; finance.create only invoices, purchase_orders or expenses"
},
"values": {
"type": "object",
"additionalProperties": true,
"description": "Required for set, list.map, record create/update, workflow.call or workflow.return; call/return map declared typed fields, max256KB. Exact expressions preserve JSON type."
},
"errorWorkflow": {
"type": "object",
"properties": {
"workflowId": {
"type": "string",
"format": "uuid"
},
"versionId": {
"type": "string",
"format": "uuid"
},
"workflowName": {
"type": "string",
"description": "Server-resolved handler name",
"maxLength": 100
},
"versionNumber": {
"type": "integer",
"description": "Server-resolved pinned handler version",
"minimum": 1
}
},
"required": [
"workflowId",
"versionId"
],
"description": "Optional ordinary-trigger handler. Exact active current-workspace published Error trigger version; cannot be configured on an Error trigger or action. Once per source execution after final failure; paused/unavailable or inactive-plan handlers are skipped. Handler input is bounded failure metadata, not source input/context. Handler descendants cannot start automatic handlers."
},
"inputs": {
"$ref": "#/components/schemas/WorkflowContract",
"description": "trigger.subworkflow input contract; reserved context names forbidden"
},
"outputs": {
"$ref": "#/components/schemas/WorkflowContract",
"description": "trigger.subworkflow returned output contract"
},
"workflowId": {
"type": "string",
"format": "uuid",
"description": "workflow.call current-workspace reusable workflow ID"
},
"versionId": {
"type": "string",
"format": "uuid",
"description": "workflow.call exact immutable reusable version ID; never follows later publication"
},
"workflowName": {
"type": "string",
"description": "Server-resolved child name at publication"
},
"versionNumber": {
"type": "integer",
"description": "Server-resolved child version at publication",
"minimum": 1
},
"calendarId": {
"type": "string",
"format": "uuid",
"description": "Required for calendar.create; current enabled calendar in this workspace"
},
"recordId": {
"type": "string",
"description": "Required for crm.update/note/tags/stage/link/assign; native actions require UUID or exact context expression with a plain path; tags target People and stage targets Deals",
"maxLength": 164
},
"note": {
"type": "string",
"description": "Required crm.note plain-text internal activity; trimmed, nonempty, max10000 characters after interpolation. Completed output reused on recovery; full rerun adds another note.",
"maxLength": 10000
},
"field": {
"type": "string",
"description": "Context path for condition/list.filter; item key for list.sort/deduplicate/aggregate. List paths use item or item.field; max160, no prototype segments.",
"maxLength": 160
},
"operator": {
"type": "string",
"enum": [
"eq",
"neq",
"gte",
"gt",
"lte",
"lt",
"contains",
"exists"
],
"description": "Required for condition"
},
"value": {
"description": "Condition comparison value, interpolated",
"type": [
"string",
"number",
"boolean",
"object",
"array",
"null"
]
},
"url": {
"type": "string",
"format": "uri",
"description": "Required for http/graphql; GraphQL static public HTTP(S):80/443 endpoint, max2048, no embedded credentials; private destinations and redirects blocked at run"
},
"method": {
"type": "string",
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
],
"description": "http method, default GET"
},
"credentialId": {
"type": "string",
"format": "uuid",
"description": "Optional saved outbound HTTP/GraphQL credential. Publish checks current workspace ownership; runtime rechecks availability. Headers are server-managed, not arbitrary draft headers."
},
"body": {
"description": "http body; interpolated",
"type": [
"string",
"object",
"array",
"null"
]
},
"query": {
"type": "string",
"description": "Required graphql document; literal, never interpolated; trimmed nonempty, max64KB UTF-8. Endpoint validates syntax/schema.",
"maxLength": 65536,
"minLength": 1
},
"variables": {
"type": "object",
"additionalProperties": true,
"description": "graphql variables JSON object, default {}; exact context expressions preserve scalar/array/object/null types. Max256KB before and after resolution."
},
"operationName": {
"type": "string",
"maxLength": 100,
"pattern": "^$|^[_A-Za-z][_0-9A-Za-z]*$",
"description": "Optional graphql named operation; required by destination when document has multiple operations"
},
"errorPolicy": {
"type": "string",
"enum": [
"stop",
"continue"
],
"description": "graphql default stop: returned errors fail even with HTTP200. continue requires nonnull data object and retains partial data/errors/extensions; errors-only/null data still fail. HTTP/invalid-envelope failures always fail. Generic failure text excludes provider messages."
},
"message": {
"type": "string",
"description": "log message; context expressions supported"
},
"search": {
"type": "string",
"description": "crm.search text, optional blank for all; context expressions supported; common contact/customer fields",
"maxLength": 200
},
"list": {
"type": "string",
"format": "uuid",
"description": "Optional crm.search saved smart list for this object/workspace. Current list rules evaluated at runtime; omit/blank for no list."
},
"cursor": {
"type": "string",
"description": "crm.search page cursor, optional; use {{nodes.<search-id>.next_cursor}} with identical search/rules",
"maxLength": 500
},
"filter": {
"$ref": "#/components/schemas/Filter",
"description": "Optional crm.search typed field rules, mutually exclusive with list. Exact context expressions retain original scalar type; schema/operator checked at publish and resolved values checked at run."
},
"columns": {
"type": "array",
"items": {
"type": "string",
"description": "data.csv serialize: exact record key/heading in output order; distinct ignoring case, no surrounding spaces or prototype keys",
"maxLength": 100
},
"minItems": 1,
"maxItems": 100
},
"language": {
"type": "string",
"enum": [
"javascript",
"python"
],
"description": "code interpreter, default javascript"
},
"code": {
"type": "string",
"description": "code: function body. JavaScript async input/secrets or Python main(input,secrets). Max65536 UTF-8 bytes. Return JSON, no console output. Isolated runsc container; no host files/network/packages; 256MiB,0.5CPU,32processes. Input/output max256KiB and40 JSON levels; finite numbers and no prototype keys. Saved successful output reused on recovery; rerun reexecutes. No core API/worker eval.",
"maxLength": 65536,
"minLength": 1
},
"timeoutSeconds": {
"type": "integer",
"description": "code: integer execution deadline including normal startup, default5 seconds",
"minimum": 1,
"maximum": 10
},
"secretBindings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,39}$",
"description": "Unique alias, no prototype keys"
},
"credentialId": {
"type": "string",
"format": "uuid"
}
},
"required": [
"name",
"credentialId"
]
},
"minItems": 0,
"maxItems": 8
},
"source": {
"type": "string",
"description": "code: plain context path to JSON input, no braces/prototype segments; no inherited context or credentials. data.xml: plain context path to XML1.0 UTF-8 text for parse or an ordered document tree for serialize. Parse returns document/root/elements; serialize returns xml/root/elements. Namespaces, attributes, mixed text, repeated children, CDATA/comments/instructions supported; no DTD/external entities. Max1000 elements,32 element levels,5000 content nodes,100 attributes per element,256KiB input/output. data.csv source: plain context path to CSV text for parse or a record array for serialize; max1000 records,256KiB JSON input/output. Parse preserves string cells, skips blank rows and accepts headings-only empty lists. Serialize escapes text formulas and JSON-encodes nested values. Required list/Loop source context path containing an array, such as items or last.items; max1000 items. Loop uses each/done output handles, collects terminal item outputs and scopes item/index/loop values. Max5 nesting,10000 visits,256KB input/output,1MB control state",
"maxLength": 160
},
"branches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_-]{0,39}$",
"description": "Unique stable named Split output; prototype names forbidden"
},
"label": {
"type": "string",
"description": "Branch name",
"maxLength": 60
}
},
"required": [
"id",
"label"
]
},
"minItems": 2,
"maxItems": 10
},
"splitId": {
"type": "string",
"description": "Merge: existing paired Split step ID. Exactly one Merge per Split; every branch reaches it. Ordered paths start from isolated saved context; they run serially under one execution lease and join once. Collect returns each final output in items; Append requires each final output.items array and caps total at1000 items. Output includes count and branches with id/label/output. Collected Split output and Merge output max256KiB each; five combined Split/Loop scopes and1MB control state. Branch root Set values remain isolated; step outputs are available after Merge.",
"maxLength": 80
},
"cases": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_-]{0,39}$",
"description": "Unique stable case handle; default reserved"
},
"label": {
"type": "string",
"description": "Readable case name",
"maxLength": 60
},
"field": {
"type": "string",
"description": "Context path",
"maxLength": 160
},
"operator": {
"type": "string",
"enum": [
"eq",
"neq",
"gte",
"gt",
"lte",
"lt",
"contains",
"exists"
]
},
"value": {
"description": "Comparison value, context expressions supported"
}
},
"required": [
"id",
"label",
"field",
"operator"
]
},
"minItems": 1,
"maxItems": 10
},
"direction": {
"type": "string",
"enum": [
"asc",
"desc"
],
"description": "Required list.sort direction; stable ties, missing/null last; one scalar type"
},
"offset": {
"type": "integer",
"description": "Required list.limit offset",
"minimum": 0,
"maximum": 1000
},
"limit": {
"type": "integer",
"description": "list.limit cap 1-1000; crm.search page size 1-100, default25",
"minimum": 1,
"maximum": 1000
},
"assignmentField": {
"type": "string",
"description": "crm.assign: existing user field key on the selected nonfinancial object; built-in owner_id is Assigned owner",
"maxLength": 40
},
"userId": {
"type": "string",
"description": "crm.assign set: current workspace user UUID or exact plain context expression; clear ignores it",
"maxLength": 164
},
"memberSource": {
"type": "string",
"enum": [
"choose",
"context"
],
"description": "Optional crm.assign editor input mode; no runtime authorization effect"
},
"relationField": {
"type": "string",
"description": "crm.link: existing relation field key on the selected nonfinancial object",
"maxLength": 40
},
"targetId": {
"type": "string",
"description": "crm.link set: target record UUID or exact plain context expression; clear ignores it",
"maxLength": 164
},
"pipelineId": {
"type": "string",
"description": "crm.stage: workspace pipeline UUID or exact plain context expression",
"maxLength": 164
},
"stageId": {
"type": "string",
"description": "crm.stage: stage ID in destination pipeline or exact context expression",
"maxLength": 164
},
"status": {
"type": "string",
"enum": [
"keep",
"Open",
"Won",
"Lost"
],
"description": "crm.stage: preserve current status by default or explicitly set it"
},
"destinationSource": {
"type": "string",
"enum": [
"choose",
"context"
],
"description": "Optional crm.stage editor input mode; no runtime authorization effect"
},
"tags": {
"oneOf": [
{
"type": "string",
"maxLength": 10000
},
{
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 500
}
}
],
"description": "crm.tags input: one tag per line, array of templates, or exact context expression resolving to a text array. Resolved names trimmed, nonempty, max80; total contact max100. Case-sensitive; no-op creates no update/event."
},
"operation": {
"type": "string",
"enum": [
"add",
"remove",
"set",
"clear",
"count",
"sum",
"avg",
"min",
"max",
"now",
"format",
"shift",
"difference",
"parse",
"serialize",
"collect",
"append"
],
"description": "merge collect/append, data.csv/xml parse/serialize, crm.link/assign set/clear, crm.tags add/remove, list.aggregate calculation or required date.time operation; no numeric string coercion"
},
"date": {
"type": "string",
"description": "date.time input: YYYY-MM-DD midnight UTC or ISO timestamp with explicit Z/offset; context expressions allowed",
"maxLength": 500
},
"otherDate": {
"type": "string",
"description": "date.time difference end date; signed End minus Start",
"maxLength": 500
},
"amount": {
"oneOf": [
{
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
{
"type": "string",
"pattern": "^\\{\\{[a-zA-Z0-9_.-]+\\}\\}$"
}
],
"description": "date.time shift amount, default1; months/years whole numbers; exact expression must resolve to number"
},
"unit": {
"type": "string",
"enum": [
"milliseconds",
"seconds",
"minutes",
"hours",
"days",
"weeks",
"months",
"years"
],
"description": "date.time unit, defaultdays; difference excludes months/years. Fixed days/weeks are elapsed24/168hours; month/year UTC calendar clamped."
},
"locale": {
"type": "string",
"description": "date.time display language code, defaulten-GB",
"maxLength": 80
},
"format": {
"type": "string",
"enum": [
"iso",
"date",
"time",
"full"
],
"description": "date.time display format, defaultfull; ISO always UTC"
},
"groupBy": {
"type": "string",
"description": "Optional scalar grouping context path, max100groups; omitted is one group",
"maxLength": 160
}
},
"required": [
"kind",
"label"
],
"description": "Fields are conditional on kind; publish enforces the required node settings. Extra runtime context fields may exist."
}Graph
Optional groups are non-nested visual metadata. IDs are unique; each existing step belongs to at most one group. Groups do not change execution paths.
| Field | Type | Required | Details |
|---|---|---|---|
nodes | object[] | Yes | Min 1 items. Max 100 items. |
edges | object[] | Yes | Max 150 items. |
groups | object[] | No | Max 50 items. |
{
"type": "object",
"properties": {
"nodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique nonempty node ID",
"maxLength": 80
},
"type": {
"const": "workflow"
},
"position": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"required": [
"x",
"y"
]
},
"data": {
"$ref": "#/components/schemas/NodeData"
}
},
"required": [
"id",
"type",
"position",
"data"
]
},
"minItems": 1,
"maxItems": 100
},
"edges": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Edge ID"
},
"source": {
"type": "string",
"description": "Source node"
},
"target": {
"type": "string",
"description": "Target node"
},
"sourceHandle": {
"type": [
"string",
"null"
]
},
"targetHandle": {
"type": [
"string",
"null"
]
},
"label": {
"type": "string",
"description": "Optional label"
}
},
"required": [
"id",
"source",
"target"
]
},
"minItems": 0,
"maxItems": 150
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^group:[a-zA-Z0-9-]{1,80}$"
},
"label": {
"type": "string",
"description": "Visual group name",
"maxLength": 100,
"minLength": 1
},
"nodes": {
"type": "array",
"items": {
"type": "string",
"description": "Existing step ID",
"maxLength": 80
},
"minItems": 1,
"maxItems": 100
}
},
"required": [
"id",
"label",
"nodes"
]
},
"minItems": 0,
"maxItems": 50
}
},
"required": [
"nodes",
"edges"
],
"description": "Optional groups are non-nested visual metadata. IDs are unique; each existing step belongs to at most one group. Groups do not change execution paths."
}Workflow
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | No | |
name | string | No | Name |
description | string | No | Description |
draft | Graph | No | |
status | string | No | draft, active or paused |
published_version_id | string or null | No | |
created_at | string | No | Timestamp |
updated_at | string | No | Timestamp |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"description": "Name"
},
"description": {
"type": "string",
"description": "Description"
},
"draft": {
"$ref": "#/components/schemas/Graph"
},
"status": {
"type": "string",
"description": "draft, active or paused"
},
"published_version_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"created_at": {
"type": "string",
"description": "Timestamp"
},
"updated_at": {
"type": "string",
"description": "Timestamp"
}
},
"required": []
}Execution
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | No | |
workflow_id | uuid | No | |
version_id | uuid | No | |
state | string | No | queued, running, waiting, retrying, succeeded, failed or cancelled |
input | object | No | Object field values. User fields use a current workspace member UUID; unchanged departed assignments can remain on their original record. Only keys in the workspace object definition are allowed; required fields and field types are validated. |
context | object | No | Object field values. User fields use a current workspace member UUID; unchanged departed assignments can remain on their original record. Only keys in the workspace object definition are allowed; required fields and field types are validated. |
runtime | object | No | Server-owned durable Loop/Split frames, ordered scopes and visited-step counter. Cannot be supplied through trigger input or recovery. |
current_node | string or null | No | |
error | string or null | No | |
created_at | string | No | Timestamp |
completed_at | string or null | No |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"workflow_id": {
"type": "string",
"format": "uuid"
},
"version_id": {
"type": "string",
"format": "uuid"
},
"state": {
"type": "string",
"description": "queued, running, waiting, retrying, succeeded, failed or cancelled"
},
"input": {
"type": "object",
"additionalProperties": true,
"description": "Object field values. User fields use a current workspace member UUID; unchanged departed assignments can remain on their original record. Only keys in the workspace object definition are allowed; required fields and field types are validated."
},
"context": {
"type": "object",
"additionalProperties": true,
"description": "Object field values. User fields use a current workspace member UUID; unchanged departed assignments can remain on their original record. Only keys in the workspace object definition are allowed; required fields and field types are validated."
},
"runtime": {
"type": "object",
"readOnly": true,
"description": "Server-owned durable Loop/Split frames, ordered scopes and visited-step counter. Cannot be supplied through trigger input or recovery."
},
"current_node": {
"type": [
"string",
"null"
]
},
"error": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": "string",
"description": "Timestamp"
},
"completed_at": {
"type": [
"string",
"null"
]
}
},
"required": []
}Connection
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | No | |
name | string | No | Name |
channel | email | sms | voice | whatsapp | No | Channel |
provider | smtp | google | microsoft | curl | qcall | whatsapp | No | Provider |
config | object | No | Public provider metadata; no private credentials |
enabled | boolean | No | Connection enabled |
verified_at | string or null | No | |
last_error | string or null | No | |
daily_limit | integer | No | Rolling daily allowance Min 1. Max 10000. |
hourly_limit | integer | No | Rolling hourly allowance Min 1. Max 2000. |
created_at | string | No | Timestamp |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"description": "Name"
},
"channel": {
"type": "string",
"enum": [
"email",
"sms",
"voice",
"whatsapp"
],
"description": "Channel"
},
"provider": {
"type": "string",
"enum": [
"smtp",
"google",
"microsoft",
"curl",
"qcall",
"whatsapp"
],
"description": "Provider"
},
"config": {
"type": "object",
"description": "Public provider metadata; no private credentials"
},
"enabled": {
"type": "boolean",
"description": "Connection enabled"
},
"verified_at": {
"type": [
"string",
"null"
]
},
"last_error": {
"type": [
"string",
"null"
]
},
"daily_limit": {
"type": "integer",
"description": "Rolling daily allowance",
"minimum": 1,
"maximum": 10000
},
"hourly_limit": {
"type": "integer",
"description": "Rolling hourly allowance",
"minimum": 1,
"maximum": 2000
},
"created_at": {
"type": "string",
"description": "Timestamp"
}
},
"required": []
}SMTPSecret
| Field | Type | Required | Details |
|---|---|---|---|
email | Yes | Max 200 characters. | |
host | string | Yes | Public SMTP hostname |
port | 465 | 587 | Yes | |
user | string | Yes | Username |
password | string | Yes | Password/app password |
imap | object | No |
{
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"maxLength": 200
},
"host": {
"type": "string",
"description": "Public SMTP hostname"
},
"port": {
"enum": [
465,
587
]
},
"user": {
"type": "string",
"description": "Username"
},
"password": {
"type": "string",
"description": "Password/app password"
},
"imap": {
"type": "object",
"properties": {
"host": {
"type": "string",
"description": "Public IMAP hostname; TLS port 993"
},
"user": {
"type": "string",
"description": "Username"
},
"password": {
"type": "string",
"description": "Password/app password"
}
},
"required": [
"host",
"user",
"password"
]
}
},
"required": [
"email",
"host",
"port",
"user",
"password"
]
}SMSSecret
| Field | Type | Required | Details |
|---|---|---|---|
curl | string | Yes | One literal HTTPS:443 POST JSON cURL. No execution or file input. Max 50000 characters. |
recipientPath | string | Yes | Existing body path, e.g. recipients.0.mobiles Max 150 characters. |
messagePath | string | No | Optional message body path Max 150 characters. |
{
"type": "object",
"properties": {
"curl": {
"type": "string",
"description": "One literal HTTPS:443 POST JSON cURL. No execution or file input.",
"maxLength": 50000
},
"recipientPath": {
"type": "string",
"description": "Existing body path, e.g. recipients.0.mobiles",
"maxLength": 150
},
"messagePath": {
"type": "string",
"description": "Optional message body path",
"maxLength": 150
}
},
"required": [
"curl",
"recipientPath"
]
}VoiceSecret
| Field | Type | Required | Details |
|---|---|---|---|
apiKey | string | Yes | Workspace QCall API key |
{
"type": "object",
"properties": {
"apiKey": {
"type": "string",
"description": "Workspace QCall API key"
}
},
"required": [
"apiKey"
]
}WhatsAppSecret
| Field | Type | Required | Details |
|---|---|---|---|
accessToken | string | Yes | Meta access token |
appSecret | string | Yes | Meta app secret |
wabaId | string | Yes | Pattern: ^\d{5,40}$. |
phoneId | string | Yes | Pattern: ^\d{5,40}$. |
version | string | No | Pattern: ^v\d{2}\.0$. |
{
"type": "object",
"properties": {
"accessToken": {
"type": "string",
"description": "Meta access token"
},
"appSecret": {
"type": "string",
"description": "Meta app secret"
},
"wabaId": {
"type": "string",
"pattern": "^\\d{5,40}$"
},
"phoneId": {
"type": "string",
"pattern": "^\\d{5,40}$"
},
"version": {
"type": "string",
"pattern": "^v\\d{2}\\.0$",
"default": "v23.0"
}
},
"required": [
"accessToken",
"appSecret",
"wabaId",
"phoneId"
]
}ConnectionInput
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Nonblank name Max 100 characters. |
provider | smtp | curl | qcall | whatsapp | Yes | Use native OAuth endpoints for Google/Outlook. |
daily_limit | integer | No | Defaults 100 Min 1. Max 10000. |
hourly_limit | integer | No | Defaults 20 Min 1. Max 2000. |
secret | SMTPSecret or SMSSecret or VoiceSecret or WhatsAppSecret | Yes | Choose the schema matching provider. Secret is encrypted and never returned. |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Nonblank name",
"maxLength": 100
},
"provider": {
"type": "string",
"enum": [
"smtp",
"curl",
"qcall",
"whatsapp"
],
"description": "Use native OAuth endpoints for Google/Outlook."
},
"daily_limit": {
"type": "integer",
"description": "Defaults 100",
"minimum": 1,
"maximum": 10000
},
"hourly_limit": {
"type": "integer",
"description": "Defaults 20",
"minimum": 1,
"maximum": 2000
},
"secret": {
"oneOf": [
{
"$ref": "#/components/schemas/SMTPSecret"
},
{
"$ref": "#/components/schemas/SMSSecret"
},
{
"$ref": "#/components/schemas/VoiceSecret"
},
{
"$ref": "#/components/schemas/WhatsAppSecret"
}
],
"description": "Choose the schema matching provider. Secret is encrypted and never returned."
}
},
"required": [
"name",
"provider",
"secret"
]
}Step
All optional fields default to empty except language. Email requires subject/body; SMS needs body or variables; voice requires assistant/dialer; WhatsApp requires template/language. Interpolate {{record.data.name}} and other context paths.
| Field | Type | Required | Details |
|---|---|---|---|
waitHours | integer | No | Wait before this step, default 0 Min 0. Max 720. |
subject | string | No | Email subject; nonblank for email Max 300 characters. |
body | string | No | Email/SMS body; email requires nonblank Max 10000 characters. |
variables | object | No | Keys: 1-40 letters, digits or underscores |
template | string | No | Approved WhatsApp template name Max 100 characters. |
language | string | No | WhatsApp language, default en Max 20 characters. |
parameters | string[] | No | Max 20 items. |
assistantId | string | No | QCall assistant ID Max 100 characters. |
dialerId | string | No | QCall dialer ID Max 100 characters. |
{
"type": "object",
"properties": {
"waitHours": {
"type": "integer",
"description": "Wait before this step, default 0",
"minimum": 0,
"maximum": 720
},
"subject": {
"type": "string",
"description": "Email subject; nonblank for email",
"maxLength": 300
},
"body": {
"type": "string",
"description": "Email/SMS body; email requires nonblank",
"maxLength": 10000
},
"variables": {
"type": "object",
"additionalProperties": {
"type": "string",
"description": "SMS template variable, max 1,000 characters",
"maxLength": 1000
},
"description": "Keys: 1-40 letters, digits or underscores"
},
"template": {
"type": "string",
"description": "Approved WhatsApp template name",
"maxLength": 100
},
"language": {
"type": "string",
"description": "WhatsApp language, default en",
"maxLength": 20
},
"parameters": {
"type": "array",
"items": {
"type": "string",
"description": "WhatsApp body parameter",
"maxLength": 1000
},
"minItems": 0,
"maxItems": 20
},
"assistantId": {
"type": "string",
"description": "QCall assistant ID",
"maxLength": 100
},
"dialerId": {
"type": "string",
"description": "QCall dialer ID",
"maxLength": 100
}
},
"required": [],
"description": "All optional fields default to empty except language. Email requires subject/body; SMS needs body or variables; voice requires assistant/dialer; WhatsApp requires template/language. Interpolate {{record.data.name}} and other context paths."
}CampaignInput
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Nonblank name Max 100 characters. |
kind | campaign | sequence | Yes | A campaign has exactly one step; a sequence has 1-20. |
channel | email | sms | voice | whatsapp | Yes | One channel per campaign/sequence |
object_key | string | No | Pattern: ^[a-z][a-z0-9_]{1,39}$. |
list_id | string or null | No | |
connection_id | uuid | Yes | |
steps | Step[] | Yes | Min 1 items. Max 20 items. |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Nonblank name",
"maxLength": 100
},
"kind": {
"type": "string",
"enum": [
"campaign",
"sequence"
],
"description": "A campaign has exactly one step; a sequence has 1-20."
},
"channel": {
"type": "string",
"enum": [
"email",
"sms",
"voice",
"whatsapp"
],
"description": "One channel per campaign/sequence"
},
"object_key": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$",
"default": "people"
},
"list_id": {
"type": [
"string",
"null"
],
"format": "uuid",
"default": null
},
"connection_id": {
"type": "string",
"format": "uuid"
},
"steps": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Step"
},
"minItems": 1,
"maxItems": 20
}
},
"required": [
"name",
"kind",
"channel",
"connection_id",
"steps"
]
}Campaign
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | No | |
name | string | No | Name |
kind | string | No | campaign or sequence |
channel | string | No | Channel |
object_key | string | No | Pattern: ^[a-z][a-z0-9_]{1,39}$. |
list_id | string or null | No | |
connection_id | uuid | No | |
workflow_id | uuid | No | |
steps | Step[] | No | |
status | string | No | draft, active, paused or cancelled |
version | integer | No | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
created_at | string | No | Timestamp |
updated_at | string | No | Timestamp |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"description": "Name"
},
"kind": {
"type": "string",
"description": "campaign or sequence"
},
"channel": {
"type": "string",
"description": "Channel"
},
"object_key": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{1,39}$"
},
"list_id": {
"type": [
"string",
"null"
]
},
"connection_id": {
"type": "string",
"format": "uuid"
},
"workflow_id": {
"type": "string",
"format": "uuid"
},
"steps": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Step"
}
},
"status": {
"type": "string",
"description": "draft, active, paused or cancelled"
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"created_at": {
"type": "string",
"description": "Timestamp"
},
"updated_at": {
"type": "string",
"description": "Timestamp"
}
},
"required": []
}CustomerWebhook
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | No | |
name | string | No | Name |
url | string | No | Public HTTPS:443 destination without userinfo, query or fragment Max 2048 characters. |
events | string[] | No | Min 1 items. Max 100 items. |
enabled | boolean | No | Receiving future events |
version | integer | No | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
secret_version | integer | No | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
disabled_reason | string or null | No | |
created_at | string | No | Timestamp |
updated_at | string | No | Timestamp |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"description": "Name"
},
"url": {
"type": "string",
"description": "Public HTTPS:443 destination without userinfo, query or fragment",
"maxLength": 2048
},
"events": {
"type": "array",
"items": {
"type": "string",
"description": "Selected current event type"
},
"minItems": 1,
"maxItems": 100
},
"enabled": {
"type": "boolean",
"description": "Receiving future events"
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"secret_version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"disabled_reason": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": "string",
"description": "Timestamp"
},
"updated_at": {
"type": "string",
"description": "Timestamp"
}
},
"required": []
}WebhookDelivery
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | No | |
endpoint_id | uuid | No | |
event_id | uuid | No | |
event_type | string | No | Business event type |
state | queued | retrying | succeeded | failed | cancelled | No | Delivery state |
attempts | integer | No | Total completed attempts |
cycle_attempts | integer | No | Attempts since creation or latest replay |
version | integer | No | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
next_attempt_at | string | No | Timestamp |
last_status | integer or null | No | |
last_error | string or null | No | |
created_at | string | No | Timestamp |
completed_at | string or null | No |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"endpoint_id": {
"type": "string",
"format": "uuid"
},
"event_id": {
"type": "string",
"format": "uuid"
},
"event_type": {
"type": "string",
"description": "Business event type"
},
"state": {
"type": "string",
"enum": [
"queued",
"retrying",
"succeeded",
"failed",
"cancelled"
],
"description": "Delivery state"
},
"attempts": {
"type": "integer",
"description": "Total completed attempts"
},
"cycle_attempts": {
"type": "integer",
"description": "Attempts since creation or latest replay"
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"next_attempt_at": {
"type": "string",
"description": "Timestamp"
},
"last_status": {
"type": [
"integer",
"null"
]
},
"last_error": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": "string",
"description": "Timestamp"
},
"completed_at": {
"type": [
"string",
"null"
]
}
},
"required": []
}WebhookEnvelope
Notification metadata only. No CRM field values, message bodies, user emails or private credentials. Read current authorized records with /api/v1 when needed.
| Field | Type | Required | Details |
|---|---|---|---|
schema_version | 1 | Yes | |
id | uuid | Yes | |
type | string | Yes | Business event type |
workspace_id | uuid | Yes | |
occurred_at | string | Yes | Timestamp |
resource | object | Yes | |
correlation_id | uuid | Yes | |
causation_id | string or null | Yes |
{
"type": "object",
"properties": {
"schema_version": {
"const": 1
},
"id": {
"type": "string",
"format": "uuid"
},
"type": {
"type": "string",
"description": "Business event type"
},
"workspace_id": {
"type": "string",
"format": "uuid"
},
"occurred_at": {
"type": "string",
"description": "Timestamp"
},
"resource": {
"type": "object",
"properties": {
"type": {
"type": [
"string",
"null"
]
},
"id": {
"type": [
"string",
"null"
],
"format": "uuid"
}
},
"required": []
},
"correlation_id": {
"type": "string",
"format": "uuid"
},
"causation_id": {
"type": [
"string",
"null"
],
"format": "uuid"
}
},
"required": [
"schema_version",
"id",
"type",
"workspace_id",
"occurred_at",
"resource",
"correlation_id",
"causation_id"
],
"description": "Notification metadata only. No CRM field values, message bodies, user emails or private credentials. Read current authorized records with /api/v1 when needed."
}InvoiceTemplate
Validated plain-text document design, saved with the invoice. Supplied logo and accurate status, amounts and numbering remain protected. No HTML, remote images or scripts.
| Field | Type | Required | Details |
|---|---|---|---|
title | string | No | Nonblank single-line heading; default Invoice Max 60 characters. |
bill_to_label | string | No | Nonblank single-line customer label; default Bill to Max 60 characters. |
payment_label | string | No | Nonblank single-line payment label Max 60 characters. |
notes_label | string | No | Nonblank single-line notes label Max 60 characters. |
payment_instructions | string | No | Blank uses issuer profile instructions Max 2000 characters. |
notes | string | No | Default notes copied to drafts Max 2000 characters. |
footer | string | No | Single-line footer Max 140 characters. |
accent | string | No | Pattern: ^#[0-9a-fA-F]{6}$. |
{
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Nonblank single-line heading; default Invoice",
"maxLength": 60
},
"bill_to_label": {
"type": "string",
"description": "Nonblank single-line customer label; default Bill to",
"maxLength": 60
},
"payment_label": {
"type": "string",
"description": "Nonblank single-line payment label",
"maxLength": 60
},
"notes_label": {
"type": "string",
"description": "Nonblank single-line notes label",
"maxLength": 60
},
"payment_instructions": {
"type": "string",
"description": "Blank uses issuer profile instructions",
"maxLength": 2000
},
"notes": {
"type": "string",
"description": "Default notes copied to drafts",
"maxLength": 2000
},
"footer": {
"type": "string",
"description": "Single-line footer",
"maxLength": 140
},
"accent": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$",
"default": "#bf3d05"
}
},
"required": [],
"description": "Validated plain-text document design, saved with the invoice. Supplied logo and accurate status, amounts and numbering remain protected. No HTML, remote images or scripts."
}ExpenseTemplate
| Field | Type | Required | Details |
|---|---|---|---|
vendor | string | No | Default vendor Max 2000 characters. |
category | string | No | Default category Max 2000 characters. |
notes | string | No | Default notes Max 2000 characters. |
{
"type": "object",
"properties": {
"vendor": {
"type": "string",
"description": "Default vendor",
"maxLength": 2000
},
"category": {
"type": "string",
"description": "Default category",
"maxLength": 2000
},
"notes": {
"type": "string",
"description": "Default notes",
"maxLength": 2000
}
},
"required": []
}EmailTemplate
| Field | Type | Required | Details |
|---|---|---|---|
subject | string | Yes | Nonblank subject Max 300 characters. |
body | string | Yes | Nonblank plain-text message Max 10000 characters. |
{
"type": "object",
"properties": {
"subject": {
"type": "string",
"description": "Nonblank subject",
"maxLength": 300
},
"body": {
"type": "string",
"description": "Nonblank plain-text message",
"maxLength": 10000
}
},
"required": [
"subject",
"body"
]
}SMSTemplate
At least one nonblank body or variable is required.
| Field | Type | Required | Details |
|---|---|---|---|
body | string | No | Message, or use variables Max 10000 characters. |
variables | object | No |
{
"type": "object",
"properties": {
"body": {
"type": "string",
"description": "Message, or use variables",
"maxLength": 10000
},
"variables": {
"type": "object",
"maxProperties": 40,
"propertyNames": {
"pattern": "^[a-zA-Z0-9_]{1,40}$"
},
"additionalProperties": {
"type": "string",
"description": "Text variable",
"maxLength": 1000
}
}
},
"required": [],
"description": "At least one nonblank body or variable is required."
}VoiceTemplate
| Field | Type | Required | Details |
|---|---|---|---|
assistantId | string | Yes | Nonblank QCall assistant ID Max 100 characters. |
dialerId | string | Yes | Nonblank QCall dialer ID Max 100 characters. |
{
"type": "object",
"properties": {
"assistantId": {
"type": "string",
"description": "Nonblank QCall assistant ID",
"maxLength": 100
},
"dialerId": {
"type": "string",
"description": "Nonblank QCall dialer ID",
"maxLength": 100
}
},
"required": [
"assistantId",
"dialerId"
]
}WhatsAppTemplate
| Field | Type | Required | Details |
|---|---|---|---|
template | string | Yes | Nonblank approved Meta template name Max 100 characters. |
language | string | No | Nonblank language code, default en Max 20 characters. |
parameters | string[] | No | Max 20 items. |
{
"type": "object",
"properties": {
"template": {
"type": "string",
"description": "Nonblank approved Meta template name",
"maxLength": 100
},
"language": {
"type": "string",
"description": "Nonblank language code, default en",
"maxLength": 20
},
"parameters": {
"type": "array",
"items": {
"type": "string",
"description": "Text body parameter",
"maxLength": 1000
},
"minItems": 0,
"maxItems": 20
}
},
"required": [
"template"
]
}TemplateInput
object or object or object or object or object or object. Choose the matching kind/content schema. Unknown content fields are rejected. No credentials or recipients belong in templates.
{
"oneOf": [
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Nonblank template name",
"maxLength": 100,
"minLength": 1
},
"kind": {
"const": "invoice"
},
"content": {
"$ref": "#/components/schemas/InvoiceTemplate"
},
"archived": {
"type": "boolean",
"default": false
}
},
"required": [
"name",
"kind",
"content"
]
},
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Nonblank template name",
"maxLength": 100,
"minLength": 1
},
"kind": {
"const": "expense"
},
"content": {
"$ref": "#/components/schemas/ExpenseTemplate"
},
"archived": {
"type": "boolean",
"default": false
}
},
"required": [
"name",
"kind",
"content"
]
},
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Nonblank template name",
"maxLength": 100,
"minLength": 1
},
"kind": {
"const": "email"
},
"content": {
"$ref": "#/components/schemas/EmailTemplate"
},
"archived": {
"type": "boolean",
"default": false
}
},
"required": [
"name",
"kind",
"content"
]
},
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Nonblank template name",
"maxLength": 100,
"minLength": 1
},
"kind": {
"const": "sms"
},
"content": {
"$ref": "#/components/schemas/SMSTemplate"
},
"archived": {
"type": "boolean",
"default": false
}
},
"required": [
"name",
"kind",
"content"
]
},
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Nonblank template name",
"maxLength": 100,
"minLength": 1
},
"kind": {
"const": "voice"
},
"content": {
"$ref": "#/components/schemas/VoiceTemplate"
},
"archived": {
"type": "boolean",
"default": false
}
},
"required": [
"name",
"kind",
"content"
]
},
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Nonblank template name",
"maxLength": 100,
"minLength": 1
},
"kind": {
"const": "whatsapp"
},
"content": {
"$ref": "#/components/schemas/WhatsAppTemplate"
},
"archived": {
"type": "boolean",
"default": false
}
},
"required": [
"name",
"kind",
"content"
]
}
],
"description": "Choose the matching kind/content schema. Unknown content fields are rejected. No credentials or recipients belong in templates."
}Template
Use TemplateInput. Choose the matching kind/content schema. Unknown content fields are rejected. No credentials or recipients belong in templates.
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | Yes | |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
created_at | string | Yes | Timestamp |
updated_at | string | Yes | Timestamp |
{
"allOf": [
{
"$ref": "#/components/schemas/TemplateInput"
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"created_at": {
"type": "string",
"description": "Timestamp"
},
"updated_at": {
"type": "string",
"description": "Timestamp"
}
},
"required": [
"id",
"version",
"created_at",
"updated_at"
]
}
]
}CalendarConfig
Unique weekdays/dates/hosts; nonoverlapping windows. Hosts must be current members. Reminders emit workflow events rather than sending messages automatically.
| Field | Type | Required | Details |
|---|---|---|---|
kind | personal | team | service | Yes | Personal has exactly one host |
timezone | string | Yes | Valid IANA timezone Max 100 characters. |
duration | integer | Yes | Minutes, multiple of15 Min 15. Max 240. |
buffer_before | integer | Yes | Minutes Min 0. Max 120. |
buffer_after | integer | Yes | Minutes Min 0. Max 120. |
notice_minutes | integer | Yes | Minimum advance notice Min 0. Max 10080. |
horizon_days | integer | Yes | Days Min 1. Max 90. |
hosts | uuid[] | Yes | Min 1 items. Max 20 items. |
assignment | round_robin | all | Yes | Next available host or every host |
availability | object[] | Yes | Min 7 items. Max 7 items. |
exceptions | object[] | Yes | Max 100 items. |
location | string | Yes | Public booking location or link Max 500 characters. |
description | string | Yes | Public booking description Max 2000 characters. |
reminder_minutes | integer[] | Yes | Max 3 items. |
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"personal",
"team",
"service"
],
"description": "Personal has exactly one host"
},
"timezone": {
"type": "string",
"description": "Valid IANA timezone",
"maxLength": 100
},
"duration": {
"type": "integer",
"description": "Minutes, multiple of15",
"minimum": 15,
"maximum": 240,
"multipleOf": 15
},
"buffer_before": {
"type": "integer",
"description": "Minutes",
"minimum": 0,
"maximum": 120
},
"buffer_after": {
"type": "integer",
"description": "Minutes",
"minimum": 0,
"maximum": 120
},
"notice_minutes": {
"type": "integer",
"description": "Minimum advance notice",
"minimum": 0,
"maximum": 10080
},
"horizon_days": {
"type": "integer",
"description": "Days",
"minimum": 1,
"maximum": 90
},
"hosts": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
},
"minItems": 1,
"maxItems": 20,
"uniqueItems": true
},
"assignment": {
"type": "string",
"enum": [
"round_robin",
"all"
],
"description": "Next available host or every host"
},
"availability": {
"type": "array",
"items": {
"type": "object",
"properties": {
"day": {
"type": "integer",
"description": "Sunday0 to Saturday6",
"minimum": 0,
"maximum": 6
},
"windows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"type": "string",
"pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
},
"end": {
"type": "string",
"description": "HH:MM, or24:00 for the end of a day"
}
},
"required": [
"start",
"end"
]
},
"minItems": 0,
"maxItems": 4
}
},
"required": [
"day",
"windows"
]
},
"minItems": 7,
"maxItems": 7
},
"exceptions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string",
"format": "date",
"description": "Valid calendar date, YYYY-MM-DD."
},
"windows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"type": "string",
"pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
},
"end": {
"type": "string",
"description": "HH:MM, or24:00 for the end of a day"
}
},
"required": [
"start",
"end"
]
},
"minItems": 0,
"maxItems": 4
}
},
"required": [
"date",
"windows"
]
},
"minItems": 0,
"maxItems": 100
},
"location": {
"type": "string",
"description": "Public booking location or link",
"maxLength": 500
},
"description": {
"type": "string",
"description": "Public booking description",
"maxLength": 2000
},
"reminder_minutes": {
"type": "array",
"items": {
"type": "integer",
"description": "Minutes before appointment",
"minimum": 1,
"maximum": 10080
},
"minItems": 0,
"maxItems": 3,
"uniqueItems": true
}
},
"required": [
"kind",
"timezone",
"duration",
"buffer_before",
"buffer_after",
"notice_minutes",
"horizon_days",
"hosts",
"assignment",
"availability",
"exceptions",
"location",
"description",
"reminder_minutes"
],
"description": "Unique weekdays/dates/hosts; nonoverlapping windows. Hosts must be current members. Reminders emit workflow events rather than sending messages automatically."
}CalendarInput
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | Yes | |
name | string | Yes | Calendar name Max 120 characters. |
config | CalendarConfig | Yes | |
enabled | boolean | Yes | Accept new appointments |
public_enabled | boolean | Yes | Explicitly publish availability and booking metadata |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"description": "Calendar name",
"maxLength": 120,
"minLength": 1
},
"config": {
"$ref": "#/components/schemas/CalendarConfig"
},
"enabled": {
"type": "boolean",
"description": "Accept new appointments"
},
"public_enabled": {
"type": "boolean",
"description": "Explicitly publish availability and booking metadata"
}
},
"required": [
"id",
"name",
"config",
"enabled",
"public_enabled"
]
}Calendar
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | Yes | |
name | string | Yes | Calendar name Max 120 characters. |
config | CalendarConfig | Yes | |
enabled | boolean | Yes | Accept new appointments |
public_enabled | boolean | Yes | Explicitly publish availability and booking metadata |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
booking_key | uuid | Yes | |
next_host | integer | No | Round-robin cursor |
created_at | date-time | No | ISO instant with explicit UTC offset. |
updated_at | date-time | No | ISO instant with explicit UTC offset. |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"description": "Calendar name",
"maxLength": 120,
"minLength": 1
},
"config": {
"$ref": "#/components/schemas/CalendarConfig"
},
"enabled": {
"type": "boolean",
"description": "Accept new appointments"
},
"public_enabled": {
"type": "boolean",
"description": "Explicitly publish availability and booking metadata"
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"booking_key": {
"type": "string",
"format": "uuid"
},
"next_host": {
"type": "integer",
"description": "Round-robin cursor"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "ISO instant with explicit UTC offset."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "ISO instant with explicit UTC offset."
}
},
"required": [
"id",
"name",
"config",
"enabled",
"public_enabled",
"version",
"booking_key"
]
}AppointmentInput
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | Yes | |
calendar_id | uuid | Yes | |
title | string | Yes | Title Max 160 characters. |
guest_name | string | Yes | Guest name Max 120 characters. |
guest_email | Yes | Max 200 characters. | |
record_id | string or null | Yes | |
starts_at | date-time | Yes | ISO instant with explicit UTC offset. |
timezone | string | Yes | Valid IANA timezone Max 100 characters. |
notes | string | Yes | Internal only Max 4000 characters. |
outside_hours | boolean | No | Workspace only: bypass working hours/notice/horizon, never host conflicts or stale provider availability. Defaults false. |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"calendar_id": {
"type": "string",
"format": "uuid"
},
"title": {
"type": "string",
"description": "Title",
"maxLength": 160,
"minLength": 1
},
"guest_name": {
"type": "string",
"description": "Guest name",
"maxLength": 120,
"minLength": 1
},
"guest_email": {
"type": "string",
"format": "email",
"maxLength": 200
},
"record_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"starts_at": {
"type": "string",
"format": "date-time",
"description": "ISO instant with explicit UTC offset."
},
"timezone": {
"type": "string",
"description": "Valid IANA timezone",
"maxLength": 100
},
"notes": {
"type": "string",
"description": "Internal only",
"maxLength": 4000
},
"outside_hours": {
"type": "boolean",
"description": "Workspace only: bypass working hours/notice/horizon, never host conflicts or stale provider availability. Defaults false."
}
},
"required": [
"id",
"calendar_id",
"title",
"guest_name",
"guest_email",
"record_id",
"starts_at",
"timezone",
"notes"
]
}Appointment
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | Yes | |
calendar_id | uuid | Yes | |
title | string | Yes | Title Max 160 characters. |
guest_name | string | No | Guest name Max 120 characters. |
guest_email | No | Max 200 characters. | |
record_id | string or null | No | |
starts_at | date-time | Yes | ISO instant with explicit UTC offset. |
timezone | string | Yes | Valid IANA timezone Max 100 characters. |
notes | string | No | Internal only Max 4000 characters. |
outside_hours | boolean | No | Workspace only: bypass working hours/notice/horizon, never host conflicts or stale provider availability. Defaults false. |
ends_at | date-time | Yes | ISO instant with explicit UTC offset. |
host_ids | uuid[] | No | |
state | booked | completed | no_show | cancelled | Yes | Lifecycle |
source | workspace | public | workflow | No | Creation source |
manage_key | uuid | No | |
location | string | No | Saved location |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
created_at | date-time | No | ISO instant with explicit UTC offset. |
updated_at | date-time | No | ISO instant with explicit UTC offset. |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"calendar_id": {
"type": "string",
"format": "uuid"
},
"title": {
"type": "string",
"description": "Title",
"maxLength": 160,
"minLength": 1
},
"guest_name": {
"type": "string",
"description": "Guest name",
"maxLength": 120,
"minLength": 1
},
"guest_email": {
"type": "string",
"format": "email",
"maxLength": 200
},
"record_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"starts_at": {
"type": "string",
"format": "date-time",
"description": "ISO instant with explicit UTC offset."
},
"timezone": {
"type": "string",
"description": "Valid IANA timezone",
"maxLength": 100
},
"notes": {
"type": "string",
"description": "Internal only",
"maxLength": 4000
},
"outside_hours": {
"type": "boolean",
"description": "Workspace only: bypass working hours/notice/horizon, never host conflicts or stale provider availability. Defaults false."
},
"ends_at": {
"type": "string",
"format": "date-time",
"description": "ISO instant with explicit UTC offset."
},
"host_ids": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
},
"state": {
"type": "string",
"enum": [
"booked",
"completed",
"no_show",
"cancelled"
],
"description": "Lifecycle"
},
"source": {
"type": "string",
"enum": [
"workspace",
"public",
"workflow"
],
"description": "Creation source"
},
"manage_key": {
"type": "string",
"format": "uuid"
},
"location": {
"type": "string",
"description": "Saved location"
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "ISO instant with explicit UTC offset."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "ISO instant with explicit UTC offset."
}
},
"required": [
"id",
"calendar_id",
"title",
"starts_at",
"ends_at",
"timezone",
"state",
"version"
]
}PublicAppointment
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | Yes | |
calendar_id | uuid | No | |
title | string | Yes | Title |
guest_name | string | No | Name |
guest_email | No | Max 200 characters. | |
starts_at | date-time | No | ISO instant with explicit UTC offset. |
ends_at | date-time | No | ISO instant with explicit UTC offset. |
timezone | string | No | Valid IANA timezone Max 100 characters. |
location | string | No | Location |
state | string | Yes | State |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
manage_key | uuid | Yes | Private bearer link: keep it with the guest; never place it in public logs or analytics. |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"calendar_id": {
"type": "string",
"format": "uuid"
},
"title": {
"type": "string",
"description": "Title"
},
"guest_name": {
"type": "string",
"description": "Name"
},
"guest_email": {
"type": "string",
"format": "email",
"maxLength": 200
},
"starts_at": {
"type": "string",
"format": "date-time",
"description": "ISO instant with explicit UTC offset."
},
"ends_at": {
"type": "string",
"format": "date-time",
"description": "ISO instant with explicit UTC offset."
},
"timezone": {
"type": "string",
"description": "Valid IANA timezone",
"maxLength": 100
},
"location": {
"type": "string",
"description": "Location"
},
"state": {
"type": "string",
"description": "State"
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"manage_key": {
"type": "string",
"format": "uuid",
"description": "Private bearer link: keep it with the guest; never place it in public logs or analytics."
}
},
"required": [
"id",
"title",
"state",
"version",
"manage_key"
]
}CalendarConnection
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | Yes | |
user_id | uuid | No | |
email | Yes | Max 200 characters. | |
provider | google | microsoft | Yes | Provider |
calendar_id | string | No | Selected provider calendar |
calendar_name | string | No | Name |
enabled | boolean | Yes | Import busy ranges |
export_enabled | boolean | Yes | Export owned appointments |
synced_at | string or null | No | |
last_error | string or null | No | |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"user_id": {
"type": "string",
"format": "uuid"
},
"email": {
"type": "string",
"format": "email",
"maxLength": 200
},
"provider": {
"type": "string",
"enum": [
"google",
"microsoft"
],
"description": "Provider"
},
"calendar_id": {
"type": "string",
"description": "Selected provider calendar"
},
"calendar_name": {
"type": "string",
"description": "Name"
},
"enabled": {
"type": "boolean",
"description": "Import busy ranges"
},
"export_enabled": {
"type": "boolean",
"description": "Export owned appointments"
},
"synced_at": {
"type": [
"string",
"null"
]
},
"last_error": {
"type": [
"string",
"null"
]
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
}
},
"required": [
"id",
"email",
"provider",
"enabled",
"export_enabled",
"version"
]
}TeamInput
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Unique name within this workspace and kind, including archived items Max 100 characters. |
description | string | No | Optional description; defaults empty Max 1000 characters. |
location_id | string or null | No | Optional active location in this workspace; defaults null |
lead_id | string or null | No | Optional current workspace member; defaults null. Choosing a lead adds them to this team. |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Unique name within this workspace and kind, including archived items",
"maxLength": 100,
"minLength": 2
},
"description": {
"type": "string",
"description": "Optional description; defaults empty",
"maxLength": 1000
},
"location_id": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "Optional active location in this workspace; defaults null"
},
"lead_id": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "Optional current workspace member; defaults null. Choosing a lead adds them to this team."
}
},
"required": [
"name"
],
"additionalProperties": false
}LocationInput
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Unique name within this workspace and kind, including archived items Max 100 characters. |
description | string | No | Optional description; defaults empty Max 1000 characters. |
address | string | No | Optional address Max 500 characters. |
city | string | No | Optional city Max 100 characters. |
country | string | No | Optional country Max 100 characters. |
timezone | string | Yes | Required valid IANA timezone; does not configure Calendar availability Max 80 characters. |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Unique name within this workspace and kind, including archived items",
"maxLength": 100,
"minLength": 2
},
"description": {
"type": "string",
"description": "Optional description; defaults empty",
"maxLength": 1000
},
"address": {
"type": "string",
"description": "Optional address",
"maxLength": 500
},
"city": {
"type": "string",
"description": "Optional city",
"maxLength": 100
},
"country": {
"type": "string",
"description": "Optional country",
"maxLength": 100
},
"timezone": {
"type": "string",
"description": "Required valid IANA timezone; does not configure Calendar availability",
"maxLength": 80
}
},
"required": [
"name",
"timezone"
],
"additionalProperties": false
}WorkspaceTeam
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Unique name within this workspace and kind, including archived items Max 100 characters. |
description | string | No | Optional description; defaults empty Max 1000 characters. |
location_id | string or null | Yes | Optional active location in this workspace; defaults null |
lead_id | string or null | Yes | Optional current workspace member; defaults null. Choosing a lead adds them to this team. |
id | uuid | Yes | |
tenant_id | uuid | No | |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
archived_at | string or null | Yes | |
member_count | integer | Yes | Current direct assignments, not workspace seats Min 0. |
created_at | date-time | No | ISO instant with explicit UTC offset. |
updated_at | date-time | No | ISO instant with explicit UTC offset. |
location | value | No | |
lead | value | No |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Unique name within this workspace and kind, including archived items",
"maxLength": 100,
"minLength": 2
},
"description": {
"type": "string",
"description": "Optional description; defaults empty",
"maxLength": 1000
},
"location_id": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "Optional active location in this workspace; defaults null"
},
"lead_id": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "Optional current workspace member; defaults null. Choosing a lead adds them to this team."
},
"id": {
"type": "string",
"format": "uuid"
},
"tenant_id": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"archived_at": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"member_count": {
"type": "integer",
"description": "Current direct assignments, not workspace seats",
"minimum": 0
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "ISO instant with explicit UTC offset."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "ISO instant with explicit UTC offset."
},
"location": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"description": "Name"
},
"archived_at": {
"type": [
"string",
"null"
]
}
},
"required": []
},
{
"type": "null"
}
]
},
"lead": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"description": "Name"
}
},
"required": []
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"name",
"location_id",
"lead_id",
"version",
"archived_at",
"member_count"
]
}WorkspaceLocation
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Unique name within this workspace and kind, including archived items Max 100 characters. |
description | string | No | Optional description; defaults empty Max 1000 characters. |
address | string | No | Optional address Max 500 characters. |
city | string | No | Optional city Max 100 characters. |
country | string | No | Optional country Max 100 characters. |
timezone | string | Yes | Required valid IANA timezone; does not configure Calendar availability Max 80 characters. |
id | uuid | Yes | |
tenant_id | uuid | No | |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
archived_at | string or null | Yes | |
member_count | integer | Yes | Current direct assignments, not workspace seats Min 0. |
created_at | date-time | No | ISO instant with explicit UTC offset. |
updated_at | date-time | No | ISO instant with explicit UTC offset. |
team_count | integer | No | Active teams associated with this location Min 0. |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Unique name within this workspace and kind, including archived items",
"maxLength": 100,
"minLength": 2
},
"description": {
"type": "string",
"description": "Optional description; defaults empty",
"maxLength": 1000
},
"address": {
"type": "string",
"description": "Optional address",
"maxLength": 500
},
"city": {
"type": "string",
"description": "Optional city",
"maxLength": 100
},
"country": {
"type": "string",
"description": "Optional country",
"maxLength": 100
},
"timezone": {
"type": "string",
"description": "Required valid IANA timezone; does not configure Calendar availability",
"maxLength": 80
},
"id": {
"type": "string",
"format": "uuid"
},
"tenant_id": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"archived_at": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"member_count": {
"type": "integer",
"description": "Current direct assignments, not workspace seats",
"minimum": 0
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "ISO instant with explicit UTC offset."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "ISO instant with explicit UTC offset."
},
"team_count": {
"type": "integer",
"description": "Active teams associated with this location",
"minimum": 0
}
},
"required": [
"id",
"name",
"timezone",
"version",
"archived_at",
"member_count"
]
}ResellerGrantDefinition
| Field | Type | Required | Details |
|---|---|---|---|
platform_plan_id | uuid | Yes | |
platform_plan_version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
max_workspaces | integer or null | Yes | Maximum live resources; null means no ceiling at this level. Zero blocks growth. Min 0. Max 1000000000. |
trial_days_max | integer | Yes | Maximum customer trial days Min 0. Max 90. |
limits | object | Yes | |
aggregate_limits | object | Yes | Shared hard ceilings across all linked customer workspaces for the same eight live gauges. Consumed usage has no ledger in this increment. |
features | object | Yes |
{
"type": "object",
"properties": {
"platform_plan_id": {
"type": "string",
"format": "uuid"
},
"platform_plan_version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"max_workspaces": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"trial_days_max": {
"type": "integer",
"description": "Maximum customer trial days",
"minimum": 0,
"maximum": 90
},
"limits": {
"type": "object",
"properties": {
"users": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"contacts": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"custom_records": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"pipelines": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"workflows": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"active_workflows": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"integrations": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"calendars": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
}
},
"required": [
"users",
"contacts",
"custom_records",
"pipelines",
"workflows",
"active_workflows",
"integrations",
"calendars"
],
"additionalProperties": false
},
"aggregate_limits": {
"type": "object",
"properties": {
"users": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"contacts": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"custom_records": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"pipelines": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"workflows": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"active_workflows": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"integrations": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"calendars": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
}
},
"required": [
"users",
"contacts",
"custom_records",
"pipelines",
"workflows",
"active_workflows",
"integrations",
"calendars"
],
"additionalProperties": false,
"description": "Shared hard ceilings across all linked customer workspaces for the same eight live gauges. Consumed usage has no ledger in this increment."
},
"features": {
"type": "object",
"properties": {
"crm": {
"type": "boolean",
"description": "Capability enabled"
},
"sales": {
"type": "boolean",
"description": "Capability enabled"
},
"finance": {
"type": "boolean",
"description": "Capability enabled"
},
"automation": {
"type": "boolean",
"description": "Capability enabled"
},
"outreach": {
"type": "boolean",
"description": "Capability enabled"
},
"calendar": {
"type": "boolean",
"description": "Capability enabled"
}
},
"required": [
"crm",
"sales",
"finance",
"automation",
"outreach",
"calendar"
],
"additionalProperties": false
}
},
"required": [
"platform_plan_id",
"platform_plan_version",
"max_workspaces",
"trial_days_max",
"limits",
"aggregate_limits",
"features"
],
"additionalProperties": false
}ResellerRetailDefinition
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Retail version name Max 100 characters. |
currency | string | Yes | Supported ISO currency, e.g. USD, INR, EUR or KWD |
monthly_price_minor | integer | Yes | Catalog price in currency minor units; not a provider charge Min 0. Max 1000000000. |
annual_price_minor | integer | Yes | Annual catalog price in currency minor units Min 0. Max 1000000000. |
setup_price_minor | integer | Yes | Setup catalog price in currency minor units Min 0. Max 1000000000. |
trial_days | integer | Yes | No greater than current wholesale allowance Min 0. Max 90. |
limits | object | Yes | |
features | object | Yes |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Retail version name",
"maxLength": 100,
"minLength": 2
},
"currency": {
"type": "string",
"description": "Supported ISO currency, e.g. USD, INR, EUR or KWD"
},
"monthly_price_minor": {
"type": "integer",
"description": "Catalog price in currency minor units; not a provider charge",
"minimum": 0,
"maximum": 1000000000
},
"annual_price_minor": {
"type": "integer",
"description": "Annual catalog price in currency minor units",
"minimum": 0,
"maximum": 1000000000
},
"setup_price_minor": {
"type": "integer",
"description": "Setup catalog price in currency minor units",
"minimum": 0,
"maximum": 1000000000
},
"trial_days": {
"type": "integer",
"description": "No greater than current wholesale allowance",
"minimum": 0,
"maximum": 90
},
"limits": {
"type": "object",
"properties": {
"users": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"contacts": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"custom_records": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"pipelines": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"workflows": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"active_workflows": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"integrations": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"calendars": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
}
},
"required": [
"users",
"contacts",
"custom_records",
"pipelines",
"workflows",
"active_workflows",
"integrations",
"calendars"
],
"additionalProperties": false
},
"features": {
"type": "object",
"properties": {
"crm": {
"type": "boolean",
"description": "Capability enabled"
},
"sales": {
"type": "boolean",
"description": "Capability enabled"
},
"finance": {
"type": "boolean",
"description": "Capability enabled"
},
"automation": {
"type": "boolean",
"description": "Capability enabled"
},
"outreach": {
"type": "boolean",
"description": "Capability enabled"
},
"calendar": {
"type": "boolean",
"description": "Capability enabled"
}
},
"required": [
"crm",
"sales",
"finance",
"automation",
"outreach",
"calendar"
],
"additionalProperties": false
}
},
"required": [
"name",
"currency",
"monthly_price_minor",
"annual_price_minor",
"setup_price_minor",
"trial_days",
"limits",
"features"
],
"additionalProperties": false
}PlatformPlanDefinition
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Plan name Max 100 characters. |
kind | workspace | enterprise | Yes | Workspace prices are fixed at USD100/month and 1200/year minor units per user; enterprise terms are negotiated. Price metadata does not create provider products or collect payment. |
limits | object | Yes | |
features | object | Yes |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Plan name",
"maxLength": 100,
"minLength": 2
},
"kind": {
"type": "string",
"enum": [
"workspace",
"enterprise"
],
"description": "Workspace prices are fixed at USD100/month and 1200/year minor units per user; enterprise terms are negotiated. Price metadata does not create provider products or collect payment."
},
"limits": {
"type": "object",
"properties": {
"users": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"contacts": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"custom_records": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"pipelines": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"workflows": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"active_workflows": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"integrations": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"calendars": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
}
},
"required": [
"users",
"contacts",
"custom_records",
"pipelines",
"workflows",
"active_workflows",
"integrations",
"calendars"
],
"additionalProperties": false
},
"features": {
"type": "object",
"properties": {
"crm": {
"type": "boolean",
"description": "Capability enabled"
},
"sales": {
"type": "boolean",
"description": "Capability enabled"
},
"finance": {
"type": "boolean",
"description": "Capability enabled"
},
"automation": {
"type": "boolean",
"description": "Capability enabled"
},
"outreach": {
"type": "boolean",
"description": "Capability enabled"
},
"calendar": {
"type": "boolean",
"description": "Capability enabled"
}
},
"required": [
"crm",
"sales",
"finance",
"automation",
"outreach",
"calendar"
],
"additionalProperties": false
}
},
"required": [
"name",
"kind",
"limits",
"features"
],
"additionalProperties": false
}WorkspaceEntitlements
| Field | Type | Required | Details |
|---|---|---|---|
plan_id | uuid | Yes | |
plan_version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
name | string | No | Assigned version name |
kind | workspace | enterprise | No | |
limits | object | Yes | |
features | object | Yes | |
overrides | object | No | |
agreement | object or null | No | |
agreement_active | boolean | No | Current agreement date window |
agreement_seats | integer or null | No | |
agreement_ends_at | string or null | No | |
usage | object | Yes | |
trial_started_at | string | No | Trial start |
trial_ends_at | string | No | Trial end |
monthly_price_minor | integer or null | No | |
annual_price_minor | integer or null | No | |
currency | USD | No | |
updated_at | string or null | No | |
reseller | object | No |
{
"type": "object",
"properties": {
"plan_id": {
"type": "string",
"format": "uuid"
},
"plan_version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"name": {
"type": "string",
"description": "Assigned version name"
},
"kind": {
"type": "string",
"enum": [
"workspace",
"enterprise"
]
},
"limits": {
"type": "object",
"properties": {
"users": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"contacts": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"custom_records": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"pipelines": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"workflows": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"active_workflows": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"integrations": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"calendars": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
}
},
"required": [
"users",
"contacts",
"custom_records",
"pipelines",
"workflows",
"active_workflows",
"integrations",
"calendars"
],
"additionalProperties": false
},
"features": {
"type": "object",
"properties": {
"crm": {
"type": "boolean",
"description": "Capability enabled"
},
"sales": {
"type": "boolean",
"description": "Capability enabled"
},
"finance": {
"type": "boolean",
"description": "Capability enabled"
},
"automation": {
"type": "boolean",
"description": "Capability enabled"
},
"outreach": {
"type": "boolean",
"description": "Capability enabled"
},
"calendar": {
"type": "boolean",
"description": "Capability enabled"
}
},
"required": [
"crm",
"sales",
"finance",
"automation",
"outreach",
"calendar"
],
"additionalProperties": false
},
"overrides": {
"type": "object",
"properties": {
"limits": {
"type": "object",
"properties": {
"users": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"contacts": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"custom_records": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"pipelines": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"workflows": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"active_workflows": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"integrations": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
},
"calendars": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 1000000000,
"description": "Maximum live resources; null means no ceiling at this level. Zero blocks growth."
}
},
"required": [],
"additionalProperties": false
},
"features": {
"type": "object",
"properties": {
"crm": {
"type": "boolean",
"description": "Capability enabled"
},
"sales": {
"type": "boolean",
"description": "Capability enabled"
},
"finance": {
"type": "boolean",
"description": "Capability enabled"
},
"automation": {
"type": "boolean",
"description": "Capability enabled"
},
"outreach": {
"type": "boolean",
"description": "Capability enabled"
},
"calendar": {
"type": "boolean",
"description": "Capability enabled"
}
},
"required": [],
"additionalProperties": false
}
},
"required": [
"limits",
"features"
],
"additionalProperties": false
},
"agreement": {
"oneOf": [
{
"type": "object",
"properties": {
"reference": {
"type": "string",
"description": "Agreement reference, not a credential",
"maxLength": 200,
"minLength": 3
},
"starts_at": {
"type": "string",
"format": "date-time"
},
"ends_at": {
"type": "string",
"format": "date-time",
"description": "After start and within the next366 days; expiry removes agreement access"
},
"seats": {
"type": "integer",
"description": "Agreed seats",
"minimum": 1,
"maximum": 10000
}
},
"required": [
"reference",
"starts_at",
"ends_at",
"seats"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"agreement_active": {
"type": "boolean",
"description": "Current agreement date window"
},
"agreement_seats": {
"type": [
"integer",
"null"
]
},
"agreement_ends_at": {
"type": [
"string",
"null"
]
},
"usage": {
"type": "object",
"properties": {
"users": {
"type": "integer",
"description": "Current live count",
"minimum": 0
},
"contacts": {
"type": "integer",
"description": "Current live count",
"minimum": 0
},
"custom_records": {
"type": "integer",
"description": "Current live count",
"minimum": 0
},
"pipelines": {
"type": "integer",
"description": "Current live count",
"minimum": 0
},
"workflows": {
"type": "integer",
"description": "Current live count",
"minimum": 0
},
"active_workflows": {
"type": "integer",
"description": "Current live count",
"minimum": 0
},
"integrations": {
"type": "integer",
"description": "Current live count",
"minimum": 0
},
"calendars": {
"type": "integer",
"description": "Current live count",
"minimum": 0
}
},
"required": [
"users",
"contacts",
"custom_records",
"pipelines",
"workflows",
"active_workflows",
"integrations",
"calendars"
]
},
"trial_started_at": {
"type": "string",
"description": "Trial start"
},
"trial_ends_at": {
"type": "string",
"description": "Trial end"
},
"monthly_price_minor": {
"type": [
"integer",
"null"
]
},
"annual_price_minor": {
"type": [
"integer",
"null"
]
},
"currency": {
"const": "USD"
},
"updated_at": {
"type": [
"string",
"null"
]
},
"reseller": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"assignment_version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"grant_version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"retail_plan_id": {
"type": "string",
"format": "uuid"
},
"retail_plan_version": {
"type": "integer",
"description": "Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes.",
"minimum": 1
},
"retail_name": {
"type": "string",
"description": "Assigned immutable retail version name"
},
"currency": {
"type": "string",
"description": "Retail catalog currency"
},
"monthly_price_minor": {
"type": "integer",
"description": "Retail catalog metadata, not a provider charge",
"minimum": 0
},
"annual_price_minor": {
"type": "integer",
"description": "Retail annual catalog metadata",
"minimum": 0
},
"setup_price_minor": {
"type": "integer",
"description": "Retail setup catalog metadata",
"minimum": 0
},
"trial_days": {
"type": "integer",
"description": "Pinned trial clamped by current wholesale allowance",
"minimum": 0,
"maximum": 90
}
},
"required": [
"id",
"assignment_version",
"grant_version",
"retail_plan_id",
"retail_plan_version"
]
}
},
"required": [
"plan_id",
"plan_version",
"version",
"limits",
"features",
"usage"
]
}
MCP