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

# Create Agent Api

`POST /api/agents`

## 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

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

---

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