v2

latestOpenAPI 3.1.02026-07-263761369.4 KB
automations

Get automation

Get an automation visible to the effective actor. Creator-scoped automations are private to their creator.

get/v1/projects/{projectId}/automations/{automationId}

Path parameters

projectIdstring required

Project ID.

automationIdstring required

Automation ID.

Query parameters

impersonateUserEmailstring email

Admin service users may explicitly act as this same-organization project member. Human and non-admin service-user tokens must omit this parameter.

Response

Success

idstring required
projectIdstring required
createdByUserIdstring required
namestring required
descriptionstring nullable required
enabledboolean required
triggerType'schedule' | 'webhook' | 'incoming_webhook' | 'on_demand' | 'integration' required
{"stackTrail":"components:schemas:Automation:properties:integrationTriggerConfig:anyOf","oasType":"schema","type":"unknown","nullable":true}
cronstring nullable required
timezonestring required
promptstring required
modelstring nullable required
buildModelstring nullable required
baseBranchstring nullable required
repoBranchesobject nullable required
agentType'build' | 'captain' required
visibilityScope'project' | 'creator' required
webhookUrlstring nullable required

Relative bearer-capability URL for incoming-webhook automations. Treat this value as sensitive because anyone who possesses it can trigger the automation.

hasWebhookSecretboolean required
runCountinteger required
lastTriggeredAtstring nullable required
createdAtstring required
updatedAtstring required