Skip to main content
POST
Trigger automation from GitHub

Authorizations

X-API-Key
string
header
required

Headers

customer
string
required

Workspace identifier

Body

application/json
action
string
required
diff
string
required
pr_number
number
required
repo
string
required
title
string
required
base_branch
string
body
string
head_branch
string
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