---
title: "Trigger Agent Run"
method: POST
path: "/agent/runs"
tags: ["agent"]
---

# Trigger Agent Run

`POST /agent/runs`

Manually trigger an agent run for a project.

Args:
    request: FastAPI request (for rate limiter).
    body: Request body with project_id.
    auth: Authenticated user.
    service: Agent service.

Returns:
    Trigger response with agent_run_id and status.

Raises:
    HTTPException: 429 if slot taken, 503 if disabled, 404 if project not found.

## Request body

- TriggerAgentRunRequest — Request body for manual agent run trigger.
  - `project_id` string, required — Project to run the agent for.

## Response `201`

Successful Response

- TriggerAgentRunResponse — Response for manual agent run trigger.
  - `agent_run_id` string, required — Created agent run ID.
  - `status` string, required — Initial run status (queued).
  - `message` string, required — Human-readable status message.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/revisions/31dfe831e079/schema)
