Base URL
/api/v1 on its own origin.
Authentication
Send a workspace API key as a bearer token:Find the IDs you need
Automations and tag mode refer to repositories, integrations, channels, and secrets by ID. Look them up first:GET /integrationsreturns connected integrations, the repositories GitHub gives access to, and integration resources such as Slack channels and Sentry projects.GET /secretsreturns workspace secrets.
POST /integrations/refresh to load it.
Create an automation
gpt-5.4. See Models and harnesses.
Change part of an automation
PATCH requests change only the fields you send. In configuration, each field you send replaces the current value, and a list you send replaces the whole list.
enabled to turn an automation on or off. PATCH /tag-mode works the same way.
Start and follow a run
POST /automations/{automationId}/runs starts a run and returns its runId. Add a message to start the run as a chat. Poll GET /runs/{runId} until status is succeeded, failed, or cancelled. resultSummary holds the agent’s final answer, and events holds the transcript.
Send a follow-up with POST /runs/{runId}/messages once the run has finished.
Errors
Errors return a JSON body with a message and, when there is one, a stablecode: