Skip to main content
POST
Trigger automation from any source

Authorizations

X-API-Key
string
header
required

Headers

customer
string
required

Workspace identifier

Body

application/json
context
object
required
source
string
required

The automation trigger source to fire. One of the built-in sources (branch, endpoint, import, schedule, slack, github, gitlab, onshape), or the name given to an automation's custom webhook trigger.

project_id
string
wait
boolean
default:false

Whether to hold the request open until every matched automation has finished running. Defaults to false: the runs start, the response is 202 with one run id each, and you read results from GET /ai/trigger/runs. Pass true only when the caller genuinely cannot poll — it makes response time the sum of the runs, an agent run has no time bound, and the request dies on the shortest timeout between you and this API (our load balancer cuts an idle connection at 60s), which loses the response while the runs themselves carry on.

Response

results
object[]
required