---
title: "Trigger automation"
method: POST
path: "/workflow/{projectId}/{workflowSchemaId}/trigger"
language: "en"
---

# Trigger automation

`POST /workflow/{projectId}/{workflowSchemaId}/trigger`

## Request

- Base URL: `https://api.mintlify.com/v1`
- URL: `https://api.mintlify.com/v1/workflow/{projectId}/{workflowSchemaId}/trigger`
- Auth: HTTP bearer

Triggers 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.

Authenticate with an admin API key.

## Path parameters

- `projectId` string, required
- `workflowSchemaId` string, required

## Response `202`

Automation run queued successfully.

- object
  - `schemaId` string: The ID of the triggered automation.
  - `instanceId` string: The ID of the queued automation run. Appears on the **Runs** tab of your [Automations](https://app.mintlify.com/settings/project/automations?tab=runs) settings.
  - `jobId` string: The ID of the background job processing the run.

## Other responses

- `400`: Invalid request. The automation ID is malformed, the automation is not active, or the automation is not configured with a custom schedule.
- `401`: The API key is missing or invalid, or your plan doesn't include API access or automations.
- `403`: Your API key doesn't have write access, or your request came from an IP address that isn't on your API key's allowlist.
- `404`: The project doesn't exist or doesn't belong to your organization, or the automation doesn't exist or doesn't belong to this project.
- `429`: You exceeded the rate limit of 10 requests per 10 seconds per organization. This limit is shared with the trigger deployment, trigger automation, and automation webhook endpoints.
- `500`: An unexpected server error occurred. Retry the request. If the error continues, contact support.

## Changes

- **2026-10-30** `eec808e66c6c`: 4 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `429`
  - added the non-success response with the status `500`
- **2026-07-02** `0a335f9dcf7e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mintlify/apis/mintlify-external-api/changes/workflow/:projectId/:workflowSchemaId/trigger/post.md)

---

[API](https://skmtc.dev/mintlify/apis/mintlify-external-api.md) - [All operations](https://skmtc.dev/mintlify/apis/mintlify-external-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mintlify/apis/mintlify-external-api/revisions/51e728e9c5eb?raw)
