Appearance
MCP endpoint (beta)
Beta
The MCP endpoint is in beta. Its tools and their answers may change.
The MCP endpoint lets an AI assistant that speaks the Model Context Protocol (Claude, or any MCP client) build automation workflows in one sub-account. The assistant can look up triggers and actions, create and edit draft workflows, run the same check the app runs before publishing, and dry-run a draft in test mode.
To let an assistant work with contacts, conversations, opportunities and bookings instead, use the CRM MCP server.
It cannot publish. There is no publish tool: a request for one is refused and logged. Drafts wait in Automations until someone on your team opens the workflow and selects Publish.
You'll need
- A sub-account API key with the
workflows:writescope (shown in Security as Draft workflows with an AI assistant (MCP, beta)). See API keys and scopes for how to create one. Give the assistant its own key. - The automations module on in the sub-account's plan.
- An MCP client that supports remote servers over HTTP.
Connect an MCP client
The endpoint is POST https://api.example.com/api/v1/mcp on your API origin. It uses the Streamable HTTP transport, stateless, with JSON answers. Send the key as Authorization: Bearer sk_live_... or X-API-Key: sk_live_....
When you tick the MCP scope on the Security page, the app shows the exact server address and a ready-made configuration. For clients configured with JSON (such as Claude Code or Claude Desktop) it looks like this:
json
{
"mcpServers": {
"agency-workflows": {
"type": "http",
"url": "https://api.example.com/api/v1/mcp",
"headers": {
"Authorization": "Bearer sk_live_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
}
}
}
}Replace the key with your own. Staff sign-in sessions and app access tokens are refused here: only API keys work.
Tools
| Tool | What it does |
|---|---|
list_triggers | The events a workflow can start on (contact created, message received, appointment booked and so on), plus schedules. |
list_actions | The actions a step can run, with their fields (which are required) and channel. |
get_workflow_format | The draft format: trigger, re-entry, the step types (wait, wait for event, if, router, action, goal, end) and conditions, with an example. |
list_workflows | The sub-account's workflows: id, name, status (draft, published, paused) and versions. |
get_workflow | One workflow: its draft, its live published version if any, its status and its revision. |
create_draft_workflow | Creates a workflow as a draft and returns its id, revision and the publish check (errors and warnings). Nothing runs until a person publishes it. |
update_draft_workflow | Replaces a workflow's draft or renames it. Needs the current revision from get_workflow. A live version keeps running unchanged until a person publishes. |
validate_workflow | Runs the publish check on the saved draft, or on a draft you pass. Errors block publishing; warnings do not. |
simulate_workflow | Test mode: dry-runs the draft for one contact (contactId) on a simulated clock. Nothing is sent or changed. |
A good order for the assistant is: get_workflow_format, list_triggers and list_actions; then create_draft_workflow; then validate_workflow until there are no errors; then, optionally, simulate_workflow.
Limits and errors
- Rate limit: 60 requests a minute per key. Over it, the endpoint answers
429with aRetry-Afterheader, in seconds. - 401: no key, or the key is invalid, revoked or expired.
- 403: the key lacks
workflows:write(withWWW-Authenticate: Bearer error="insufficient_scope"), or the plan has automations off (PLAN_FEATURE_DISABLED). - 405: for
GETandDELETE. The server opens no event stream and keeps no sessions.
Audit
Every request is recorded on the server: the key, the method, and for tool calls the tool, the workflow and the outcome (ok, error, denied or rate limited). Workflows created through MCP record the API key as their creator.