Automation
Automations run their steps whenever one of their triggers fires. An automation created or updated through the API goes live immediately; pause it to stop new runs.
Create an automation
List automations
Retrieve an automation
Update an automation
Pause an automation
Resume an automation
Delete an automation
ModelsExpand Collapse
AutomationCreateResponse object { id, createdAt, description, 10 more }
When its most recent failed run ended, test runs included; null if no run has failed.
runAs: object { type } or object { memberId, type } or object { type } Who the automation acts as.
Who the automation acts as.
steps: array of object { id, name, prompt, 2 more } or object { id, command, name, 3 more } or object { id, duration, name, 2 more }
AgentStep object { id, name, prompt, 2 more }
permissions: optional array of object { name, type, reason } or object { connector, tools, type, reason } or object { scopes, type, reason } or object { domain, type, headers, 2 more } What the agent may use in this step. Defaults to none.
What the agent may use in this step. Defaults to none.
APIPermission object { scopes, type, reason }
NetworkPermission object { domain, type, headers, 2 more }
CodeStep object { id, command, name, 3 more }
permissions: optional array of object { scopes, type, reason } or object { domain, type, headers, 2 more } What the command may use. Defaults to none.
What the command may use. Defaults to none.
APIPermission object { scopes, type, reason }
NetworkPermission object { domain, type, headers, 2 more }
triggers: array of object { type } or object { type, url, exampleResult } or object { schedule, type } or 3 more
WebhookTrigger object { type, url, exampleResult }
exampleResult: optional object { json, parsed } A sample payload and the fields the steps read from it.
A sample payload and the fields the steps read from it.
json: map[string or number or boolean or 2 more] or array of string or number or boolean or 2 more
AutomationListResponse object { data, object, totalCount }
data: array of object { id, createdAt, description, 8 more }
When its most recent failed run ended, test runs included; null if no run has failed.
AutomationPauseResponse object { id, createdAt, description, 10 more }
When its most recent failed run ended, test runs included; null if no run has failed.
runAs: object { type } or object { memberId, type } or object { type } Who the automation acts as.
Who the automation acts as.
steps: array of object { id, name, prompt, 2 more } or object { id, command, name, 3 more } or object { id, duration, name, 2 more }
AgentStep object { id, name, prompt, 2 more }
permissions: optional array of object { name, type, reason } or object { connector, tools, type, reason } or object { scopes, type, reason } or object { domain, type, headers, 2 more } What the agent may use in this step. Defaults to none.
What the agent may use in this step. Defaults to none.
APIPermission object { scopes, type, reason }
NetworkPermission object { domain, type, headers, 2 more }
CodeStep object { id, command, name, 3 more }
permissions: optional array of object { scopes, type, reason } or object { domain, type, headers, 2 more } What the command may use. Defaults to none.
What the command may use. Defaults to none.
APIPermission object { scopes, type, reason }
NetworkPermission object { domain, type, headers, 2 more }
triggers: array of object { type } or object { type, url, exampleResult } or object { schedule, type } or 3 more
WebhookTrigger object { type, url, exampleResult }
exampleResult: optional object { json, parsed } A sample payload and the fields the steps read from it.
A sample payload and the fields the steps read from it.
json: map[string or number or boolean or 2 more] or array of string or number or boolean or 2 more
AutomationResumeResponse object { id, createdAt, description, 10 more }
When its most recent failed run ended, test runs included; null if no run has failed.
runAs: object { type } or object { memberId, type } or object { type } Who the automation acts as.
Who the automation acts as.
steps: array of object { id, name, prompt, 2 more } or object { id, command, name, 3 more } or object { id, duration, name, 2 more }
AgentStep object { id, name, prompt, 2 more }
permissions: optional array of object { name, type, reason } or object { connector, tools, type, reason } or object { scopes, type, reason } or object { domain, type, headers, 2 more } What the agent may use in this step. Defaults to none.
What the agent may use in this step. Defaults to none.
APIPermission object { scopes, type, reason }
NetworkPermission object { domain, type, headers, 2 more }
CodeStep object { id, command, name, 3 more }
permissions: optional array of object { scopes, type, reason } or object { domain, type, headers, 2 more } What the command may use. Defaults to none.
What the command may use. Defaults to none.
APIPermission object { scopes, type, reason }
NetworkPermission object { domain, type, headers, 2 more }
triggers: array of object { type } or object { type, url, exampleResult } or object { schedule, type } or 3 more
WebhookTrigger object { type, url, exampleResult }
exampleResult: optional object { json, parsed } A sample payload and the fields the steps read from it.
A sample payload and the fields the steps read from it.
json: map[string or number or boolean or 2 more] or array of string or number or boolean or 2 more
AutomationRetrieveResponse object { id, createdAt, description, 10 more }
When its most recent failed run ended, test runs included; null if no run has failed.
runAs: object { type } or object { memberId, type } or object { type } Who the automation acts as.
Who the automation acts as.
steps: array of object { id, name, prompt, 2 more } or object { id, command, name, 3 more } or object { id, duration, name, 2 more }
AgentStep object { id, name, prompt, 2 more }
permissions: optional array of object { name, type, reason } or object { connector, tools, type, reason } or object { scopes, type, reason } or object { domain, type, headers, 2 more } What the agent may use in this step. Defaults to none.
What the agent may use in this step. Defaults to none.
APIPermission object { scopes, type, reason }
NetworkPermission object { domain, type, headers, 2 more }
CodeStep object { id, command, name, 3 more }
permissions: optional array of object { scopes, type, reason } or object { domain, type, headers, 2 more } What the command may use. Defaults to none.
What the command may use. Defaults to none.
APIPermission object { scopes, type, reason }
NetworkPermission object { domain, type, headers, 2 more }
triggers: array of object { type } or object { type, url, exampleResult } or object { schedule, type } or 3 more
WebhookTrigger object { type, url, exampleResult }
exampleResult: optional object { json, parsed } A sample payload and the fields the steps read from it.
A sample payload and the fields the steps read from it.
json: map[string or number or boolean or 2 more] or array of string or number or boolean or 2 more
AutomationUpdateResponse object { id, createdAt, description, 10 more }
When its most recent failed run ended, test runs included; null if no run has failed.
runAs: object { type } or object { memberId, type } or object { type } Who the automation acts as.
Who the automation acts as.
steps: array of object { id, name, prompt, 2 more } or object { id, command, name, 3 more } or object { id, duration, name, 2 more }
AgentStep object { id, name, prompt, 2 more }
permissions: optional array of object { name, type, reason } or object { connector, tools, type, reason } or object { scopes, type, reason } or object { domain, type, headers, 2 more } What the agent may use in this step. Defaults to none.
What the agent may use in this step. Defaults to none.
APIPermission object { scopes, type, reason }
NetworkPermission object { domain, type, headers, 2 more }
CodeStep object { id, command, name, 3 more }
permissions: optional array of object { scopes, type, reason } or object { domain, type, headers, 2 more } What the command may use. Defaults to none.
What the command may use. Defaults to none.
APIPermission object { scopes, type, reason }
NetworkPermission object { domain, type, headers, 2 more }
triggers: array of object { type } or object { type, url, exampleResult } or object { schedule, type } or 3 more
WebhookTrigger object { type, url, exampleResult }
exampleResult: optional object { json, parsed } A sample payload and the fields the steps read from it.
A sample payload and the fields the steps read from it.