---
title: "Create Agent Api"
method: POST
path: "/api/agents"
---

# Create Agent Api

`POST /api/agents`

## Request

- Base URL: `https://api.outcallerai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outcallerai.com/api/agents`
- Auth: none declared

## Request body

- OutcallerApiTypesApiCreateAgentRequest: A request to create a new agent.
  - `id` string, nullable
  - `name` string, required
  - `gender` string, required
  - `voice_id` string[], nullable
  - `voice_url` string, nullable
  - `primary_language` string, nullable
  - `workspace_id` string, required

## Response `201`

Successful Response

- OutcallerApiTypesApiAgentResponse: Response model for agent data.
  - `id` string, required
  - `name` string, required
  - `gender` string, required
  - `voice_id` string[], nullable
  - `voice_url` string, nullable
  - `primary_language` string, nullable
  - `workspace_id` string, required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-08-25** `c38469b3aab0`: 2 info
  - added the new optional request property `primary_language`
  - added the optional property `primary_language` to the response with the `201` status

[Operation history](https://skmtc.dev/outcallerai/apis/outcallerai-api/changes/api/agents/post.md)

---

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