Browse documentation

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.

WorkflowContract JSON Schema
{
  "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

FieldTypeRequiredDetails
errorobjectYes
Error JSON Schema
{
  "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

FieldTypeRequiredDetails
oktrueYes
OK JSON Schema
{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "ok"
  ]
}

Record

FieldTypeRequiredDetails
iduuidYes
tenant_iduuidNo
object_keystringYes Pattern: ^[a-z][a-z0-9_]{1,39}$.
user_namesobjectNoRead decoration for User fields: current member name or Former member; stored data keeps UUIDs.
dataobjectYesObject 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.
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
created_bystring or nullNo
created_by_service_account_idstring or nullNo
created_atdate-timeNo
updated_atdate-timeNo
Record JSON Schema
{
  "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.

DeveloperPermissions JSON Schema
{
  "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.

DeveloperKeyPermissions JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidYes
namestringYesIntegration identity Max 100 characters.
permissionsDeveloperPermissionsYes
disabledbooleanYesDisabled identities cannot use any key
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
created_atstringNoTimestamp
updated_atstringNoTimestamp
ServiceAccount JSON Schema
{
  "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.

WorkflowPermissions JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidYes
namestringYesGenerated version identity
permissionsWorkflowPermissionsYes
disabledbooleanYesBlock admission and further checked effects
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
workflow_iduuidYes
workflow_namestringYesWorkflow name
workflow_versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
publishedbooleanYesCurrent published version
campaign_idstring or nullNo
ai_connection_idstring or nullNo
workflow_scopeobjectYes
created_atstringNoTimestamp
updated_atstringNoTimestamp
WorkflowAccount JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidYes
service_account_iduuidYes
namestringYesKey name Max 100 characters.
prefixstringYesPublic display prefix, not a usable key
permissionsDeveloperKeyPermissionsYes
expires_atstringYesExpiry timestamp
revoked_atstring or nullNo
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
rotated_fromstring or nullNo
created_atstringNoTimestamp
APIKey JSON Schema
{
  "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

FieldTypeRequiredDetails
keyAPIKeyYes
secretstring or nullYesOne-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.
KeyReceipt JSON Schema
{
  "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

FieldTypeRequiredDetails
pipeline_idstring or nullYes
pipeline_namestringYesSaved pipeline name
stage_idstring or nullYes
stage_namestringYesSaved stage name
DealStage JSON Schema
{
  "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.

FieldTypeRequiredDetails
itemsobject[]Yes
next_cursorstring or nullYes
DealStageHistory JSON Schema
{
  "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

FieldTypeRequiredDetails
itemsRecord[]Yes
totalintegerYesNumber matching the full query, before cursor
next_cursorstring or nullYesOpaque cursor for the next page; null ends pagination.
RecordPage JSON Schema
{
  "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

FieldTypeRequiredDetails
keystringYes Pattern: ^[a-z][a-z0-9_]{1,39}$.
namestringYesField label Max 80 characters.
typetext | email | phone | number | currency | boolean | date | select | multi_select | user | relation | jsonYesField type
requiredbooleanNoDefaults false
optionsstring[]No Max 100 items.
objectstringNo Pattern: ^[a-z][a-z0-9_]{1,39}$.
Field JSON Schema
{
  "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

FieldTypeRequiredDetails
keystringYes Pattern: ^[a-z][a-z0-9_]{1,39}$.
namestringYesPlural label Max 80 characters.
singular_namestringYesSingular label Max 80 characters.
fieldsField[]Yes Min 1 items. Max 100 items.
Object JSON Schema
{
  "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

FieldTypeRequiredDetails
matchall | anyYesCombine conditions
conditionsobject[]Yes Min 1 items. Max 12 items.
Filter JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidYes
object_keystringNo Pattern: ^[a-z][a-z0-9_]{1,39}$.
namestringYesUnique name per object Max 80 characters.
filterFilterYes
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
SmartList JSON Schema
{
  "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

FieldTypeRequiredDetails
namestringYesNonblank list name Max 80 characters.
filterFilterYes
ListInput JSON Schema
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Nonblank list name",
      "maxLength": 80
    },
    "filter": {
      "$ref": "#/components/schemas/Filter"
    }
  },
  "required": [
    "name",
    "filter"
  ]
}

Import

FieldTypeRequiredDetails
csvstringYesUTF-8 CSV content, not a file path. Header required; <=500 data rows. Max 300000 characters.
mappingstring or null[]No Max 100 items.
duplicatesskip | update | errorNoPeople email duplicate policy, default skip. Blank update cells preserve existing values.
Import JSON Schema
{
  "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

FieldTypeRequiredDetails
headersstring[]No
mappingstring or null[]No
rowsintegerNoData rows
createdintegerNoPlanned creates
updatedintegerNoPlanned updates
skippedintegerNoPlanned skips
error_countintegerNoAll errors
errorsobject[]No
previewobject[]No
can_importbooleanNoTrue only if the whole import is valid
ImportReport JSON Schema
{
  "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.

FieldTypeRequiredDetails
contactsobject[]Yes Min 2 items. Max 2 items.
target_iduuidYes
take_sourcestring[]No Max 100 items.
ContactMerge JSON Schema
{
  "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

FieldTypeRequiredDetails
notesintegerNoSource notes moved
relationshipsintegerNoRelated records updated, including financial drafts
financial_historyintegerNoNon-draft financial records retained unchanged
linksintegerNoSource links combined, duplicates collapse
stopped_sequencesintegerNoActive source enrollments cancelled
MergeEffects JSON Schema
{
  "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

FieldTypeRequiredDetails
namestringYesPipeline name Max 100 characters.
stagesobject[]Yes Min 1 items. Max 30 items.
Pipeline JSON Schema
{
  "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

FieldTypeRequiredDetails
idstringYesUnique widget ID Max 80 characters.
titlestringYesKPI title Max 120 characters.
objectstringYes Pattern: ^[a-z][a-z0-9_]{1,39}$.
operationcount | sum | avgYesAggregation
fieldstringNo Pattern: ^[a-z][a-z0-9_]{1,39}$.
group_bystringNo Pattern: ^[a-z][a-z0-9_]{1,39}$.
displaymetric | bar | donutYesPresentation
currencystringNoCurrency for monetary results
filterobjectNo
date_rangeobjectNo
Widget JSON Schema
{
  "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

FieldTypeRequiredDetails
business_namestringYesNonblank issuer name Max 160 characters.
emailemail or No
addressstringNoIssuer address Max 2000 characters.
tax_idstringNoTax reference Max 100 characters.
payment_instructionsstringNoPayment instructions Max 2000 characters.
invoice_prefixstringNo Pattern: ^[A-Z0-9-]{1,12}$.
purchase_order_prefixstringNo Pattern: ^[A-Z0-9-]{1,12}$.
FinanceProfile JSON Schema
{
  "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.

FieldTypeRequiredDetails
document_templateInvoiceTemplateNo
namestringYesRequired title
customer_namestringYesRequired customer name
customer_emailemailNo Max 200 characters.
billing_addressstringNoAddress
contact_iduuidNo
deal_iduuidNo
currencystringYesEnabled currency code
issue_datedateYesValid calendar date, YYYY-MM-DD.
due_datedateYesValid calendar date, YYYY-MM-DD.
itemsobject[]Yes Min 1 items. Max 100 items.
notesstringNoNotes
InvoiceData JSON Schema
{
  "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.

FieldTypeRequiredDetails
namestringYesRequired title
vendorstringYesRequired vendor
categorystringNoCategory
spent_ondateYesValid calendar date, YYYY-MM-DD.
currencystringYesEnabled currency code
amountstring or numberYesMajor currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply.
taxstring or numberNoMajor currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply.
receipt_urluriNoHTTP(S) reference; no receipt upload endpoint.
notesstringNoNotes
deal_iduuidNo
ExpenseData JSON Schema
{
  "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.

FieldTypeRequiredDetails
namestringYesRequired title
vendorstringYesRequired supplier
vendor_emailemailNo Max 200 characters.
vendor_addressstringNoSupplier address Max 2000 characters.
company_iduuidNo
deal_iduuidNo
currencystringYesEnabled currency code
order_datedateYesValid calendar date, YYYY-MM-DD.
expected_datedateNoValid calendar date, YYYY-MM-DD.
itemsobject[]Yes Min 1 items. Max 100 items.
notesstringNoNotes
PurchaseOrderData JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidYes
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
amountstring or numberYesMajor currency units, nonnegative. Use decimal strings to retain precision. Currency-specific decimal places apply.
paid_ondateYesValid calendar date, YYYY-MM-DD.
methodBank transfer | Cash | Card | OtherYesPayment handled outside DryKraft
referencestringYesNonblank payment reference Max 200 characters.
Payment JSON Schema
{
  "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.

FieldTypeRequiredDetails
kindtrigger.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 | logYesOutreach kinds are managed and rejected by the general editor.
labelstringYesNonempty node label Max 100 characters.
eventstringNoRequired for trigger.event Max 100 characters.
modeinterval | cronNoSchedule method; omitted preserves the legacy interval mode
intervalMinutesintegerNoRequired for interval schedules Min 1. Max 525600.
cronstringNoRequired for cron schedules: five fields, minute/hour/day/month/weekday, no hashed fields Max 120 characters.
timezonestringNoNamed IANA timezone for cron or Date/Time display; fixed in the published version Max 80 characters.
secondsintegerNoRequired for wait Min 1. Max 2592000.
objectstringNoRequired for crm.search/create/update/link/assign; finance.create only invoices, purchase_orders or expenses Pattern: ^[a-z][a-z0-9_]{1,39}$.
valuesobjectNoRequired for set, list.map, record create/update, workflow.call or workflow.return; call/return map declared typed fields, max256KB. Exact expressions preserve JSON type.
errorWorkflowobjectNoOptional 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.
inputsWorkflowContractNotrigger.subworkflow input contract; reserved context names forbidden
outputsWorkflowContractNotrigger.subworkflow returned output contract
workflowIduuidNoworkflow.call current-workspace reusable workflow ID
versionIduuidNoworkflow.call exact immutable reusable version ID; never follows later publication
workflowNamestringNoServer-resolved child name at publication
versionNumberintegerNoServer-resolved child version at publication Min 1.
calendarIduuidNoRequired for calendar.create; current enabled calendar in this workspace
recordIdstringNoRequired 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.
notestringNoRequired 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.
fieldstringNoContext 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.
operatoreq | neq | gte | gt | lte | lt | contains | existsNoRequired for condition
valuestring or number or boolean or object or array or nullNoCondition comparison value, interpolated
urluriNoRequired for http/graphql; GraphQL static public HTTP(S):80/443 endpoint, max2048, no embedded credentials; private destinations and redirects blocked at run
methodGET | POST | PUT | PATCH | DELETENohttp method, default GET
credentialIduuidNoOptional saved outbound HTTP/GraphQL credential. Publish checks current workspace ownership; runtime rechecks availability. Headers are server-managed, not arbitrary draft headers.
bodystring or object or array or nullNohttp body; interpolated
querystringNoRequired graphql document; literal, never interpolated; trimmed nonempty, max64KB UTF-8. Endpoint validates syntax/schema. Max 65536 characters.
variablesobjectNographql variables JSON object, default {}; exact context expressions preserve scalar/array/object/null types. Max256KB before and after resolution.
operationNamestringNoOptional graphql named operation; required by destination when document has multiple operations Max 100 characters. Pattern: ^$|^[_A-Za-z][_0-9A-Za-z]*$.
errorPolicystop | continueNographql 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.
messagestringNolog message; context expressions supported
searchstringNocrm.search text, optional blank for all; context expressions supported; common contact/customer fields Max 200 characters.
listuuidNoOptional crm.search saved smart list for this object/workspace. Current list rules evaluated at runtime; omit/blank for no list.
cursorstringNocrm.search page cursor, optional; use {{nodes.<search-id>.next_cursor}} with identical search/rules Max 500 characters.
filterFilterNoOptional 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.
columnsstring[]No Min 1 items. Max 100 items.
languagejavascript | pythonNocode interpreter, default javascript
codestringNocode: 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.
timeoutSecondsintegerNocode: integer execution deadline including normal startup, default5 seconds Min 1. Max 10.
secretBindingsobject[]No Max 8 items.
sourcestringNocode: 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.
branchesobject[]No Min 2 items. Max 10 items.
splitIdstringNoMerge: 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.
casesobject[]No Min 1 items. Max 10 items.
directionasc | descNoRequired list.sort direction; stable ties, missing/null last; one scalar type
offsetintegerNoRequired list.limit offset Min 0. Max 1000.
limitintegerNolist.limit cap 1-1000; crm.search page size 1-100, default25 Min 1. Max 1000.
assignmentFieldstringNocrm.assign: existing user field key on the selected nonfinancial object; built-in owner_id is Assigned owner Max 40 characters.
userIdstringNocrm.assign set: current workspace user UUID or exact plain context expression; clear ignores it Max 164 characters.
memberSourcechoose | contextNoOptional crm.assign editor input mode; no runtime authorization effect
relationFieldstringNocrm.link: existing relation field key on the selected nonfinancial object Max 40 characters.
targetIdstringNocrm.link set: target record UUID or exact plain context expression; clear ignores it Max 164 characters.
pipelineIdstringNocrm.stage: workspace pipeline UUID or exact plain context expression Max 164 characters.
stageIdstringNocrm.stage: stage ID in destination pipeline or exact context expression Max 164 characters.
statuskeep | Open | Won | LostNocrm.stage: preserve current status by default or explicitly set it
destinationSourcechoose | contextNoOptional crm.stage editor input mode; no runtime authorization effect
tagsstring or string[]Nocrm.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.
operationadd | remove | set | clear | count | sum | avg | min | max | now | format | shift | difference | parse | serialize | collect | appendNomerge 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
datestringNodate.time input: YYYY-MM-DD midnight UTC or ISO timestamp with explicit Z/offset; context expressions allowed Max 500 characters.
otherDatestringNodate.time difference end date; signed End minus Start Max 500 characters.
amountnumber or stringNodate.time shift amount, default1; months/years whole numbers; exact expression must resolve to number
unitmilliseconds | seconds | minutes | hours | days | weeks | months | yearsNodate.time unit, defaultdays; difference excludes months/years. Fixed days/weeks are elapsed24/168hours; month/year UTC calendar clamped.
localestringNodate.time display language code, defaulten-GB Max 80 characters.
formatiso | date | time | fullNodate.time display format, defaultfull; ISO always UTC
groupBystringNoOptional scalar grouping context path, max100groups; omitted is one group Max 160 characters.
NodeData JSON Schema
{
  "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.

FieldTypeRequiredDetails
nodesobject[]Yes Min 1 items. Max 100 items.
edgesobject[]Yes Max 150 items.
groupsobject[]No Max 50 items.
Graph JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidNo
namestringNoName
descriptionstringNoDescription
draftGraphNo
statusstringNodraft, active or paused
published_version_idstring or nullNo
created_atstringNoTimestamp
updated_atstringNoTimestamp
Workflow JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidNo
workflow_iduuidNo
version_iduuidNo
statestringNoqueued, running, waiting, retrying, succeeded, failed or cancelled
inputobjectNoObject 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.
contextobjectNoObject 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.
runtimeobjectNoServer-owned durable Loop/Split frames, ordered scopes and visited-step counter. Cannot be supplied through trigger input or recovery.
current_nodestring or nullNo
errorstring or nullNo
created_atstringNoTimestamp
completed_atstring or nullNo
Execution JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidNo
namestringNoName
channelemail | sms | voice | whatsappNoChannel
providersmtp | google | microsoft | curl | qcall | whatsappNoProvider
configobjectNoPublic provider metadata; no private credentials
enabledbooleanNoConnection enabled
verified_atstring or nullNo
last_errorstring or nullNo
daily_limitintegerNoRolling daily allowance Min 1. Max 10000.
hourly_limitintegerNoRolling hourly allowance Min 1. Max 2000.
created_atstringNoTimestamp
Connection JSON Schema
{
  "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

FieldTypeRequiredDetails
emailemailYes Max 200 characters.
hoststringYesPublic SMTP hostname
port465 | 587Yes
userstringYesUsername
passwordstringYesPassword/app password
imapobjectNo
SMTPSecret JSON Schema
{
  "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

FieldTypeRequiredDetails
curlstringYesOne literal HTTPS:443 POST JSON cURL. No execution or file input. Max 50000 characters.
recipientPathstringYesExisting body path, e.g. recipients.0.mobiles Max 150 characters.
messagePathstringNoOptional message body path Max 150 characters.
SMSSecret JSON Schema
{
  "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

FieldTypeRequiredDetails
apiKeystringYesWorkspace QCall API key
VoiceSecret JSON Schema
{
  "type": "object",
  "properties": {
    "apiKey": {
      "type": "string",
      "description": "Workspace QCall API key"
    }
  },
  "required": [
    "apiKey"
  ]
}

WhatsAppSecret

FieldTypeRequiredDetails
accessTokenstringYesMeta access token
appSecretstringYesMeta app secret
wabaIdstringYes Pattern: ^\d{5,40}$.
phoneIdstringYes Pattern: ^\d{5,40}$.
versionstringNo Pattern: ^v\d{2}\.0$.
WhatsAppSecret JSON Schema
{
  "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

FieldTypeRequiredDetails
namestringYesNonblank name Max 100 characters.
providersmtp | curl | qcall | whatsappYesUse native OAuth endpoints for Google/Outlook.
daily_limitintegerNoDefaults 100 Min 1. Max 10000.
hourly_limitintegerNoDefaults 20 Min 1. Max 2000.
secretSMTPSecret or SMSSecret or VoiceSecret or WhatsAppSecretYesChoose the schema matching provider. Secret is encrypted and never returned.
ConnectionInput JSON Schema
{
  "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.

FieldTypeRequiredDetails
waitHoursintegerNoWait before this step, default 0 Min 0. Max 720.
subjectstringNoEmail subject; nonblank for email Max 300 characters.
bodystringNoEmail/SMS body; email requires nonblank Max 10000 characters.
variablesobjectNoKeys: 1-40 letters, digits or underscores
templatestringNoApproved WhatsApp template name Max 100 characters.
languagestringNoWhatsApp language, default en Max 20 characters.
parametersstring[]No Max 20 items.
assistantIdstringNoQCall assistant ID Max 100 characters.
dialerIdstringNoQCall dialer ID Max 100 characters.
Step JSON Schema
{
  "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

FieldTypeRequiredDetails
namestringYesNonblank name Max 100 characters.
kindcampaign | sequenceYesA campaign has exactly one step; a sequence has 1-20.
channelemail | sms | voice | whatsappYesOne channel per campaign/sequence
object_keystringNo Pattern: ^[a-z][a-z0-9_]{1,39}$.
list_idstring or nullNo
connection_iduuidYes
stepsStep[]Yes Min 1 items. Max 20 items.
CampaignInput JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidNo
namestringNoName
kindstringNocampaign or sequence
channelstringNoChannel
object_keystringNo Pattern: ^[a-z][a-z0-9_]{1,39}$.
list_idstring or nullNo
connection_iduuidNo
workflow_iduuidNo
stepsStep[]No
statusstringNodraft, active, paused or cancelled
versionintegerNoPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
created_atstringNoTimestamp
updated_atstringNoTimestamp
Campaign JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidNo
namestringNoName
urlstringNoPublic HTTPS:443 destination without userinfo, query or fragment Max 2048 characters.
eventsstring[]No Min 1 items. Max 100 items.
enabledbooleanNoReceiving future events
versionintegerNoPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
secret_versionintegerNoPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
disabled_reasonstring or nullNo
created_atstringNoTimestamp
updated_atstringNoTimestamp
CustomerWebhook JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidNo
endpoint_iduuidNo
event_iduuidNo
event_typestringNoBusiness event type
statequeued | retrying | succeeded | failed | cancelledNoDelivery state
attemptsintegerNoTotal completed attempts
cycle_attemptsintegerNoAttempts since creation or latest replay
versionintegerNoPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
next_attempt_atstringNoTimestamp
last_statusinteger or nullNo
last_errorstring or nullNo
created_atstringNoTimestamp
completed_atstring or nullNo
WebhookDelivery JSON Schema
{
  "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.

FieldTypeRequiredDetails
schema_version1Yes
iduuidYes
typestringYesBusiness event type
workspace_iduuidYes
occurred_atstringYesTimestamp
resourceobjectYes
correlation_iduuidYes
causation_idstring or nullYes
WebhookEnvelope JSON Schema
{
  "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.

FieldTypeRequiredDetails
titlestringNoNonblank single-line heading; default Invoice Max 60 characters.
bill_to_labelstringNoNonblank single-line customer label; default Bill to Max 60 characters.
payment_labelstringNoNonblank single-line payment label Max 60 characters.
notes_labelstringNoNonblank single-line notes label Max 60 characters.
payment_instructionsstringNoBlank uses issuer profile instructions Max 2000 characters.
notesstringNoDefault notes copied to drafts Max 2000 characters.
footerstringNoSingle-line footer Max 140 characters.
accentstringNo Pattern: ^#[0-9a-fA-F]{6}$.
InvoiceTemplate JSON Schema
{
  "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

FieldTypeRequiredDetails
vendorstringNoDefault vendor Max 2000 characters.
categorystringNoDefault category Max 2000 characters.
notesstringNoDefault notes Max 2000 characters.
ExpenseTemplate JSON Schema
{
  "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

FieldTypeRequiredDetails
subjectstringYesNonblank subject Max 300 characters.
bodystringYesNonblank plain-text message Max 10000 characters.
EmailTemplate JSON Schema
{
  "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.

FieldTypeRequiredDetails
bodystringNoMessage, or use variables Max 10000 characters.
variablesobjectNo
SMSTemplate JSON Schema
{
  "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

FieldTypeRequiredDetails
assistantIdstringYesNonblank QCall assistant ID Max 100 characters.
dialerIdstringYesNonblank QCall dialer ID Max 100 characters.
VoiceTemplate JSON Schema
{
  "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

FieldTypeRequiredDetails
templatestringYesNonblank approved Meta template name Max 100 characters.
languagestringNoNonblank language code, default en Max 20 characters.
parametersstring[]No Max 20 items.
WhatsAppTemplate JSON Schema
{
  "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.

TemplateInput JSON Schema
{
  "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.

FieldTypeRequiredDetails
iduuidYes
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
created_atstringYesTimestamp
updated_atstringYesTimestamp
Template JSON Schema
{
  "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.

FieldTypeRequiredDetails
kindpersonal | team | serviceYesPersonal has exactly one host
timezonestringYesValid IANA timezone Max 100 characters.
durationintegerYesMinutes, multiple of15 Min 15. Max 240.
buffer_beforeintegerYesMinutes Min 0. Max 120.
buffer_afterintegerYesMinutes Min 0. Max 120.
notice_minutesintegerYesMinimum advance notice Min 0. Max 10080.
horizon_daysintegerYesDays Min 1. Max 90.
hostsuuid[]Yes Min 1 items. Max 20 items.
assignmentround_robin | allYesNext available host or every host
availabilityobject[]Yes Min 7 items. Max 7 items.
exceptionsobject[]Yes Max 100 items.
locationstringYesPublic booking location or link Max 500 characters.
descriptionstringYesPublic booking description Max 2000 characters.
reminder_minutesinteger[]Yes Max 3 items.
CalendarConfig JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidYes
namestringYesCalendar name Max 120 characters.
configCalendarConfigYes
enabledbooleanYesAccept new appointments
public_enabledbooleanYesExplicitly publish availability and booking metadata
CalendarInput JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidYes
namestringYesCalendar name Max 120 characters.
configCalendarConfigYes
enabledbooleanYesAccept new appointments
public_enabledbooleanYesExplicitly publish availability and booking metadata
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
booking_keyuuidYes
next_hostintegerNoRound-robin cursor
created_atdate-timeNoISO instant with explicit UTC offset.
updated_atdate-timeNoISO instant with explicit UTC offset.
Calendar JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidYes
calendar_iduuidYes
titlestringYesTitle Max 160 characters.
guest_namestringYesGuest name Max 120 characters.
guest_emailemailYes Max 200 characters.
record_idstring or nullYes
starts_atdate-timeYesISO instant with explicit UTC offset.
timezonestringYesValid IANA timezone Max 100 characters.
notesstringYesInternal only Max 4000 characters.
outside_hoursbooleanNoWorkspace only: bypass working hours/notice/horizon, never host conflicts or stale provider availability. Defaults false.
AppointmentInput JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidYes
calendar_iduuidYes
titlestringYesTitle Max 160 characters.
guest_namestringNoGuest name Max 120 characters.
guest_emailemailNo Max 200 characters.
record_idstring or nullNo
starts_atdate-timeYesISO instant with explicit UTC offset.
timezonestringYesValid IANA timezone Max 100 characters.
notesstringNoInternal only Max 4000 characters.
outside_hoursbooleanNoWorkspace only: bypass working hours/notice/horizon, never host conflicts or stale provider availability. Defaults false.
ends_atdate-timeYesISO instant with explicit UTC offset.
host_idsuuid[]No
statebooked | completed | no_show | cancelledYesLifecycle
sourceworkspace | public | workflowNoCreation source
manage_keyuuidNo
locationstringNoSaved location
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
created_atdate-timeNoISO instant with explicit UTC offset.
updated_atdate-timeNoISO instant with explicit UTC offset.
Appointment JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidYes
calendar_iduuidNo
titlestringYesTitle
guest_namestringNoName
guest_emailemailNo Max 200 characters.
starts_atdate-timeNoISO instant with explicit UTC offset.
ends_atdate-timeNoISO instant with explicit UTC offset.
timezonestringNoValid IANA timezone Max 100 characters.
locationstringNoLocation
statestringYesState
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
manage_keyuuidYesPrivate bearer link: keep it with the guest; never place it in public logs or analytics.
PublicAppointment JSON Schema
{
  "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

FieldTypeRequiredDetails
iduuidYes
user_iduuidNo
emailemailYes Max 200 characters.
providergoogle | microsoftYesProvider
calendar_idstringNoSelected provider calendar
calendar_namestringNoName
enabledbooleanYesImport busy ranges
export_enabledbooleanYesExport owned appointments
synced_atstring or nullNo
last_errorstring or nullNo
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
CalendarConnection JSON Schema
{
  "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

FieldTypeRequiredDetails
namestringYesUnique name within this workspace and kind, including archived items Max 100 characters.
descriptionstringNoOptional description; defaults empty Max 1000 characters.
location_idstring or nullNoOptional active location in this workspace; defaults null
lead_idstring or nullNoOptional current workspace member; defaults null. Choosing a lead adds them to this team.
TeamInput JSON Schema
{
  "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

FieldTypeRequiredDetails
namestringYesUnique name within this workspace and kind, including archived items Max 100 characters.
descriptionstringNoOptional description; defaults empty Max 1000 characters.
addressstringNoOptional address Max 500 characters.
citystringNoOptional city Max 100 characters.
countrystringNoOptional country Max 100 characters.
timezonestringYesRequired valid IANA timezone; does not configure Calendar availability Max 80 characters.
LocationInput JSON Schema
{
  "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

FieldTypeRequiredDetails
namestringYesUnique name within this workspace and kind, including archived items Max 100 characters.
descriptionstringNoOptional description; defaults empty Max 1000 characters.
location_idstring or nullYesOptional active location in this workspace; defaults null
lead_idstring or nullYesOptional current workspace member; defaults null. Choosing a lead adds them to this team.
iduuidYes
tenant_iduuidNo
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
archived_atstring or nullYes
member_countintegerYesCurrent direct assignments, not workspace seats Min 0.
created_atdate-timeNoISO instant with explicit UTC offset.
updated_atdate-timeNoISO instant with explicit UTC offset.
locationvalueNo
leadvalueNo
WorkspaceTeam JSON Schema
{
  "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

FieldTypeRequiredDetails
namestringYesUnique name within this workspace and kind, including archived items Max 100 characters.
descriptionstringNoOptional description; defaults empty Max 1000 characters.
addressstringNoOptional address Max 500 characters.
citystringNoOptional city Max 100 characters.
countrystringNoOptional country Max 100 characters.
timezonestringYesRequired valid IANA timezone; does not configure Calendar availability Max 80 characters.
iduuidYes
tenant_iduuidNo
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
archived_atstring or nullYes
member_countintegerYesCurrent direct assignments, not workspace seats Min 0.
created_atdate-timeNoISO instant with explicit UTC offset.
updated_atdate-timeNoISO instant with explicit UTC offset.
team_countintegerNoActive teams associated with this location Min 0.
WorkspaceLocation JSON Schema
{
  "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

FieldTypeRequiredDetails
platform_plan_iduuidYes
platform_plan_versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
max_workspacesinteger or nullYesMaximum live resources; null means no ceiling at this level. Zero blocks growth. Min 0. Max 1000000000.
trial_days_maxintegerYesMaximum customer trial days Min 0. Max 90.
limitsobjectYes
aggregate_limitsobjectYesShared hard ceilings across all linked customer workspaces for the same eight live gauges. Consumed usage has no ledger in this increment.
featuresobjectYes
ResellerGrantDefinition JSON Schema
{
  "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

FieldTypeRequiredDetails
namestringYesRetail version name Max 100 characters.
currencystringYesSupported ISO currency, e.g. USD, INR, EUR or KWD
monthly_price_minorintegerYesCatalog price in currency minor units; not a provider charge Min 0. Max 1000000000.
annual_price_minorintegerYesAnnual catalog price in currency minor units Min 0. Max 1000000000.
setup_price_minorintegerYesSetup catalog price in currency minor units Min 0. Max 1000000000.
trial_daysintegerYesNo greater than current wholesale allowance Min 0. Max 90.
limitsobjectYes
featuresobjectYes
ResellerRetailDefinition JSON Schema
{
  "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

FieldTypeRequiredDetails
namestringYesPlan name Max 100 characters.
kindworkspace | enterpriseYesWorkspace 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.
limitsobjectYes
featuresobjectYes
PlatformPlanDefinition JSON Schema
{
  "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

FieldTypeRequiredDetails
plan_iduuidYes
plan_versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.
namestringNoAssigned version name
kindworkspace | enterpriseNo
limitsobjectYes
featuresobjectYes
overridesobjectNo
agreementobject or nullNo
agreement_activebooleanNoCurrent agreement date window
agreement_seatsinteger or nullNo
agreement_ends_atstring or nullNo
usageobjectYes
trial_started_atstringNoTrial start
trial_ends_atstringNoTrial end
monthly_price_minorinteger or nullNo
annual_price_minorinteger or nullNo
currencyUSDNo
updated_atstring or nullNo
resellerobjectNo
WorkspaceEntitlements JSON Schema
{
  "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"
  ]
}