Trigger automation
Trigger a scheduled automation to run immediately, instead of waiting for its next scheduled time. Useful for running automations from CI/CD pipelines, like a GitHub Action that runs on every merge to your default branch. Only scheduled (custom schedule) automations can be triggered. The run picks up changes since the last completed run, identical to a regular scheduled run.
400 error.
Use cases
- CI/CD pipelines: Run the Update from code changes automation on every merge to
main, so docs update at your release cadence rather than on a fixed schedule. - Release events: Run the Draft changelog automation when you cut a release tag, so the changelog drafts at the same time the release ships.
- Custom tooling: Trigger automations from internal tools, Slack commands, or scheduled jobs you already run.
Find the automation ID
Copy the automation ID from the automation’s settings panel on the Automations page in your dashboard.Example
Trigger an automation from a GitHub Action whenever code merges tomain:
Rate limits
This endpoint shares a rate limit with Trigger update: up to 5 requests per minute per organization. Triggered runs consume credits at the same rate as scheduled runs.Authorizations
The Authorization header expects a Bearer token. Use an admin API key (prefixed with mint_). This is a server-side secret key. Generate one on the API keys page in your dashboard.
Path Parameters
The ID of the automation to trigger. Can be copied from the automation's settings panel on the Automations page in your dashboard.
Response
Automation run queued successfully.
The ID of the triggered automation.
The ID of the queued automation run. Appears in the run history on the Automation Runs page.
The ID of the background job processing the run.