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

# Create agents

`POST /beta/agents/bulk`

Create agents in bulk.

## Request body

- CreateAgentsInput
  - `data` 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 agents

- CreateAgentsOutput
  - `data` BulkActionOutcomeBulkErrorAgent[]
    - union
      - BulkActionFailureBulkErrorAgent
        - `error` union, required
          - EmptyPatchSet
            - `id` string, required
            - `message` string, required
          - ErrorResponse
            - `message` string, required
          - Infrastructure
            - `id` string, required
            - `message` string, required
          - Integrity
            - `id` string, required
            - `message` string, required
          - InvalidArgument
            - `message` string, required
          - NotFound1
            - `id` string, required
            - `message` string, required
          - Validation
            - `id` string
            - `message` string, required
      - BulkActionSuccessBulkErrorAgent
        - `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
- `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/revisions/5eaff14a2c46/schema)
