---
title: "Run an automation"
method: POST
path: "/api/v0/automations/{automationId}/run"
tags: ["Automations"]
---

# Run an automation

`POST /api/v0/automations/{automationId}/run`

## Request

- Base URL: `https://api.factory.ai`
- URL: `https://api.factory.ai/api/v0/automations/{automationId}/run`
- Auth: HTTP bearer

Starts one run of an automation the caller may change (404 otherwise). Each call starts a new run, including while an earlier run of the automation is still in progress. The run executes as the identity the automation runs as, never as the caller. 202 means the run started. 409 when the Slack or organization-default routing refuses the run, when the run paused the automation instead of starting (the response names the reason, and later runs stay paused until it is resumed), or when the automation is hosted on a self-hosted computer whose droid is too old to run it more than once at a time and a run is in progress there. CI automations, Slack automations with no computer or environment, and local automations without a registered computer cannot be started here (400). A local automation hosted on a computer connected through Remote Control starts on that computer, which must be online: 424 when it is unreachable, runs an incompatible daemon, or refuses the run. A 424 saying the computer did not confirm the start means the run may still be starting; check run history before retrying.

## Path parameters

- `automationId` string, required: Automation ID

## Headers

- `X-Factory-Org-Id` string

## Response `202`

Response for status 202

- RunAutomation202ResponseBody
  - `message` string, required
  - `sessionId` string, nullable, required

## Other responses

- `400`: Response for status 400
- `401`: Response for status 401
- `402`: Response for status 402
- `403`: Response for status 403
- `404`: Response for status 404
- `409`: Response for status 409
- `424`: Response for status 424
- `451`: Response for status 451
- `500`: Response for status 500
- `503`: Response for status 503

## Changes

- **2026-11-12** `b6a46c415079`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/automations/:automationId/run/post.md)

---

[API](https://skmtc.dev/factory/apis/factory-public-api.md) - [All operations](https://skmtc.dev/factory/apis/factory-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/factory/apis/factory-public-api/revisions/2e37e1b079d2?raw)
