---
title: "Create agent"
method: POST
path: "/api/v1/public/agents"
tags: ["public"]
---

# Create agent

`POST /api/v1/public/agents`

Create a voice agent in the authenticated workspace.

## Headers

- `Idempotency-Key` string, nullable

## Request body

- AgentCreateRequest
  - `name` string, required
  - `gender` string, required

## Response `201`

Successful Response

- OutcallerApiApiPublicSchemasAgentResponse
  - `id` string, required
  - `name` string, required
  - `gender` string, required
  - `temperature` number, required
  - `agentTalksFirst` boolean, required
  - `interruptable` boolean, required
  - `vadEnabled` boolean, required
  - `minimumTurnDuration` integer, required
  - `turnEndpointDelay` integer, required
  - `minimumInterruptionDuration` integer, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-04** `f7903dc1bdbb` — 1 info
  - added the new optional `header` request parameter `Idempotency-Key`
- **2026-07-26** `e7248cb2f50b` — 1 breaking, 2 warning, 12 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `201`
  - removed the request property `voiceId`
  - removed the request property `voiceUrl`
  - added the required property `agentTalksFirst` to the response with the `201` status
  - …11 more

[Change history](https://skmtc.dev/outcallerai/apis/fastapi/changes/api/v1/public/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)
