---
title: "Create agent"
method: POST
path: "/beta/agents"
tags: ["Agents"]
---

# Create agent

`POST /beta/agents`

Create an agent.

## Request body

- CreateAgentInput
  - `displayName` string, required — The agent's display name
  - `email` string, required — The agent's primary email address
  - `phoneNumber` string — The agent's primary phone number
  - `additionalEmails` string[] — Additional email addresses for the agent
  - `additionalPhoneNumbers` string[] — Additional phone numbers for the agent
  - `firstName` string — The agent's first name
  - `lastName` string — The agent's last name
  - `middleNames` string[] — The agent's middle names
  - `avatarUrl` string — The url from which to load the agent's avatar

## Response `201`

The created agent

- AgentOutput
  - `data` Agent, required
    - `id` string, uuid, required — Unique identifier for the agent
    - `createdAt` string, date-time, required — Time when the agent was created
    - `displayName` string, required — The agent's display name
    - `email` string, required — The agent's primary email address
    - `avatarUrl` string — The url from which to load the agent's avatar
    - `phoneNumber` string — The agent's primary phone number
    - `additionalEmails` string[] — Additional email addresses for the agent
    - `additionalPhoneNumbers` string[] — Additional phone numbers for the agent
    - `firstName` string — The agent's first name
    - `lastName` string — The agent's last name
    - `middleNames` string[] — The agent's middle names
    - `roles` string[] — The agent's roles

## Other responses

- `400` — Invalid value extracted from request context, Invalid value for: body, Validation failure during agent creation
- `500` — Internal failure during request processing

---

[API](https://skmtc.net/dixa/apis/dixa-api.md) · [All operations](https://skmtc.net/dixa/apis/dixa-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dixa/dixa-api/versions/041e058483f0/schema)
