---
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
  - `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
  - `workspace_id` string, required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `422` — Validation Error

---

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