---
title: "Create an agent"
method: POST
path: "/api/v2/agents"
tags: ["Agents"]
---

# Create an agent

`POST /api/v2/agents`

Creates a new agent in the organization with the specified name, manager, role, and optional avatar.

## Headers

- `X-Organization-Id` string, required

## Response `201`

A single agent record returned in JSON:API format, including attributes and related resources.

## Other responses

- `422` — Returned when creating an agent fails validation — for example, when required fields like name or manager are missing.

---

[API](https://skmtc.net/productive/apis/api-documentation.md) · [All operations](https://skmtc.net/productive/apis/api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/productive/api-documentation/versions/6bb0150a5c5f/schema)
