---
title: "Create Agent Run"
method: POST
path: "/v2/agents"
tags: ["agent-runs"]
---

# Create Agent Run

`POST /v2/agents`

## Request body

- AgentRunCreateRequest
  - `prompt` string, required
  - `request_id` string, nullable — Idempotency key; two runs with one request_id start one fire.
  - `timezone` string
  - `user_id` string, nullable — Run-as user for org-level (sk_) API keys, which carry no user context of their own. Ignored for OAuth callers: their token identifies the user.

## Response `201`

Successful Response

- AgentRunCreateResponse
  - `task_id` string, required — Opaque agent run identifier.
  - `request_id` string, required
  - `status` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/getauctor/apis/fastapi.md) · [All operations](https://skmtc.dev/getauctor/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getauctor/fastapi/revisions/aeb6faa3b8f0/schema)
