Docs

Docs

x-cpod-domain: workflows

Workflows

Platform workflow engine — orchestrate multi-step processes with conditional logic and error handling.

Try in explorer client.workflows

Workflow

A defined workflow with steps, conditions, and error handling.

REST path/api/v1/workflows
Operations
listgetcreateupdatedeleterun
SDK
// list — returns only your records; add filters/search:
await client.workflows.list()

// create:
await client.workflows.create({
  id: "rec_01HXEXAMPLE",
  tenant_id: "example tenant_id",
  created_at: "2026-01-01T00:00:00Z",
  updated_at: "2026-01-01T00:00:00Z",
  name: "example name",
  app_id: "example app_id",
})
FieldTypeDescription
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidUserUser id from the caller's JWT (sub).
updated_byuuidUserUser id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumWhere the write originated. Defaults to 'api'.frontendbackendserversystemapi
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidUserUser id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
name*stringWorkflow name (unique per tenant).
descriptionstringHuman-readable workflow description.
versionstringSemantic version.
statusenumWorkflow status.activedraftarchived
triggerenumHow the workflow is triggered.manualscheduledeventwebhook
stepsjsonArray of workflow steps with conditions and actions.
configjsonWorkflow-level configuration.
error_handlingjsonError handling strategy (retry, skip, fail).
permissionsjsonRequired permissions to run this workflow.