Automations
createAutomation
Create an automation. It’s prepared automatically: when preparation succeeds it waits at Pending Approval; when it fails, the status is Evaluation Failed or Code Generation Failed, and the automation’s page in the web app says why (see the lifecycle). Permission:automations:write
Parameters:
The trigger and any schedule come from
instructions. agentId is not
accepted: the automation belongs to the agent you connect as. Anything else you
send is ignored.
Returns: The automation object: id, organizationId, name,
description, instructions, status, enabled, agentId, grantedTools
(the tool names it can use once approved), createdBy, triggerType,
triggerEvent, cronExpression, nextRunAt, lastScheduledRunAt,
isActive, disabledAt, disabledReason, currentExecutions,
maxExecutions, expiresAt, groupId, groupName, groupMetadata,
createdAt, updatedAt, and deletedAt.
getAutomation
Get details of a specific automation by ID. Permission:automations:read
Parameters:
Returns: The automation object, or
null if not found.
listAutomations
List automations with pagination. Permission:automations:read
Parameters:
Returns:
updateAutomation
Update an automation. All fields are optional exceptautomationId.
Permission: automations:write
Parameters:
Changing
instructions stops the automation and sends it back through
Pending Evaluation — to Pending Approval when preparation succeeds, or
to Evaluation Failed / Code Generation Failed when it doesn’t; it
doesn’t run again until it’s approved in the web app, and its page there says
why preparation failed. The trigger and schedule are re-derived from the new
instructions. An automation that has completed or expired keeps the new text
without being regenerated.
status only pauses or resumes: setting active on an automation that isn’t
already active or paused fails with “…cannot be set to active by updating its
status; only an active or paused automation can be paused or resumed — approve
it instead”. To resume an automation that
loop protection paused,
click Resume on its web detail page, or send enabled: true and
status: "active" together. Approval of a regenerated version also re-enables
it.
Anything else you send is ignored.
Returns: The updated automation object.
deleteAutomation
Delete an automation. It disappears from lists and stops running. Permission:automations:delete
Parameters:
Returns: The deleted automation object.
Executions
getAutomationExecution
Get details of a specific automation run by ID. Permission:automations.executions:read
Parameters:
Returns: The execution object, or
null if not found. It includes
success, executionStatus, errorType, errorMessage, executionTimeMs,
attemptNumber, maxAttempts, nextRetryAt, isRetryable, and the
startedAt, completedAt, createdAt and updatedAt timestamps.
listAutomationExecutions
List automation runs with pagination, optionally filtered by automation ID. Permission:automations.executions:read
Parameters:
Returns:
Errors
Errors come back as text:Error: <message> for most failures,
Automation not found for a missing ID, and
Validation failed for <tool>: … for invalid parameters.
The REST API exposes the same automations; POST /v1/automations additionally
accepts an agentId. See the API reference.
Next steps
Authentication
How MCP clients authenticate to the server