---
title: "Create Agent"
method: POST
path: "/core/agents"
tags: ["Agents"]
---

# Create Agent

`POST /core/agents`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/core/agents`
- Auth: HTTP bearer

Create an agent.

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Request body

- AgentCreateRequest: Schema for API requests to create a new agent (excludes organization_id).
  - `name` string, required
  - `description` string, nullable
  - `active` boolean, nullable
  - `is_demo` boolean, nullable
  - `metadata` object, nullable

## Response `200`

Successful Response

- Agent: Agent entity representing an agent configuration.
  - `id` string, required
  - `organization_id` string, required
  - `name` string, required
  - `description` string, required
  - `active` boolean, required
  - `is_demo` boolean, required
  - `metadata` object, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `created_by` string, nullable
  - `modified_by` string, nullable
  - `labels` object
  - `feedback_form` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anyreach/apis/anyreach-api.md) - [All operations](https://skmtc.dev/anyreach/apis/anyreach-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anyreach/apis/anyreach-api/revisions/2eddf40c8c93?raw)
