---
title: "Create a new user (optionally with initial identity links)"
method: POST
path: "/api/users"
tags: ["Users"]
---

# Create a new user (optionally with initial identity links)

`POST /api/users`

## Request body

- object
  - `name` string, required
  - `email` string
  - `role` string
  - `notes` string
  - `emailAliases` string[]
  - `preferredChannel` string
  - `timezone` string
  - `metadata` object
  - `dailyBudgetUsd` number, nullable
  - `status` 'invited' | 'active' | 'suspended'
  - `identities` object[]
    - `kind` string, required
    - `externalId` string, required

## Response `200`

User created

## Other responses

- `400` — Validation error
- `401` — Unauthorized

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/92a1dcbd2fc7/schema)
