Create an automation

Afficher en Markdown

Creates the automation’s configuration (instructions + environment binding). Add a trigger with POST /automations/{automationId}/triggers to make it fire. The repo must already be connected.

Scope: automations:write

Authentification

AuthorizationBearer

Your ara_ API key from Settings > Ara API. Keys are capability-scoped: run, plugins:read, secrets:read, secrets:write, sessions:read, knowledge:read, repos:read, repos:write, reviews:read, reviews:write, analytics:read, org:read, org:write, attachments:read, attachments:write, plugins:write, guardrails:read, guardrails:write.

Paramètres de chemin

orgIdstringRequis

Organization id or slug. Resolve it with GET /v3/self.

Requête

This endpoint expects an object.
instructionsstringRequis
The system instructions the automation runs with.
repostringRequis

Connected repository path. GitHub uses owner/name; GitLab projects may include nested groups, such as group/subgroup/project.

namestringOptionnel

Display name. Defaults to the first line of instructions.

providerenumOptionnel

Source-control provider for the connected repository. Defaults to GitHub first, then GitLab if no GitHub repository matches.

modelstring or nullOptionnel

Model override. null uses the workspace default. New runs accept only the currently available Ara model catalog.

toolsobjectOptionnel

Réponse

Created.
idstringOptionnel
org_idstringOptionnel
namestring or nullOptionnel
instructionsstring or nullOptionnel
The system instructions the automation runs with.
modelstring or nullOptionnel
enabledbooleanOptionnel

A paused (false) automation’s triggers never fire.

toolsobjectOptionnel
environmentobjectOptionnel
triggerslist of objectsOptionnel
Every condition that fires this automation. Empty until you add one.
created_atdatetimeOptionnel
updated_atdatetimeOptionnel

Erreurs

400
Bad Request Error
402
Payment Required Error