---
title: "Run Agent"
method: POST
path: "/api/agents/{instance_id}/run"
tags: ["agents"]
---

# Run Agent

`POST /api/agents/{instance_id}/run`

## Request

- Base URL: `https://api.advisorppc.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.advisorppc.com/api/agents/{instance_id}/run`
- Auth: HTTP bearer

Queue a run for the instance and fire the read-only executor in the
background (skipped when the agent runtime is not configured — the run
stays ``queued`` for an out-of-band executor, exactly like tests that drive
``run_agent_run`` directly with an injected client).

## Path parameters

- `instance_id` integer, required

## Headers

- `X-Tenant-Id` integer, nullable

## Response `200`

Successful Response

- RunActionOut: Response for POST /{instance_id}/run — the freshly queued run row.
  - `id` integer, required
  - `instance_id` integer, required
  - `definition_key` string, required
  - `status` string, required
  - `summary` string, nullable, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/advisorppc/apis/advisorppc-api.md) · [All operations](https://skmtc.dev/advisorppc/apis/advisorppc-api/llms.txt) · [OpenAPI document](https://skmtc.dev/advisorppc/apis/advisorppc-api/revisions/3441bd729e0c?raw)
