---
title: "Create Agent Route"
method: POST
path: "/api/v1/agents"
tags: ["agents"]
---

# Create Agent Route

`POST /api/v1/agents`

## Headers

- `Authorization` string, nullable
- `X-Request-ID` string, nullable

## Request body

- AgentCreate
  - `name` string, nullable
  - `description` string, nullable
  - `system_prompt` string, nullable
  - `source` 'auto' | 'manual'
  - `provider_id` string, uuid, nullable

## Response `201`

Successful Response

- AgentRead
  - `id` string, uuid, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `org_id` string, uuid, required
  - `owner_id` string, uuid, nullable, required
  - `name` string, nullable, required
  - `description` string, nullable, required
  - `system_prompt` string, nullable, required
  - `status` 'draft' | 'active', required
  - `source` 'auto' | 'manual', required
  - `provider_id` string, uuid, nullable, required
  - `provider` AgentProviderSummary, required
    - `id` string, uuid, required
    - `name` string, required
    - `provider` string, required
    - `model` string, nullable, required
  - `deployment_id` string, uuid, nullable
  - `agent_url` string, required — Inference base URL a developer pastes into their client (see format_agent_url for the hybrid/cloud rendering rules).

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-27** `b20a3bdd6219` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/xenovia/apis/controlplane/changes/api/v1/agents/post.md)

---

[API](https://skmtc.dev/xenovia/apis/controlplane.md) · [All operations](https://skmtc.dev/xenovia/apis/controlplane/llms.txt) · [OpenAPI document](https://skmtc.dev/xenovia/apis/controlplane/revisions/b20a3bdd6219?raw)
