Workflows API (private beta)
The Workflows API lets your own code create, read, update, publish, and delete workflows, and read each workflow's execution logs and statistics. It is in private beta: it is enabled for selected sub-accounts, and other sub-accounts receive a 403 error with WORKFLOW_API_NOT_ENABLED_FOR_LOCATION. Contact support to join the beta.
What the API can do
Create workflows from a complete definition. New workflows start as drafts.
Read and update workflows as a definition you can change and send back.
Validate before saving: check a definition for errors without saving it, with each error pointing at the exact step.
Publish or unpublish: publish a workflow, or set it back to draft.
Search and delete: find workflows by name, status, folder, or date, and delete them.
Browse step types: every trigger and action available in the sub-account, with its fields.
Execution logs: who entered a workflow, what happened at each step, and which steps failed, with the error.
Statistics: enrollments, completions, and failures per step, by hour, day, or week.
Authenticate
In the sub-account, go to Settings > Private Integrations and create an integration with the workflow scopes you need: View Workflows, Edit Workflows, Publish Workflows, Delete Workflows, and View Workflow Logs. See Create and manage private integrations.
Send the token as a bearer token, with the
Version: v3header and the sub-account's locationId on every request.
Your AI assistant can use the same capabilities through the MCP server; see Connect MCP Server.
Behavior to plan around
Updates replace the whole workflow, so read it first and send back the version you read.
To edit a published workflow, set it to draft first. While it is a draft, its triggers are off and contacts in it are paused.
App steps only accept an app account that is already connected in the sub-account.
Deleting a workflow is permanent and stops everyone currently in it.
Logs cover up to 30 days per request and go back 60 days. They show live runs only; test runs from the builder are not included.