---
title: "Creates multiple users in the instance"
method: POST
path: "/api/users/batch"
tags: ["Users"]
---

# Creates multiple users in the instance

`POST /api/users/batch`

## Request

- Base URL: `https://api.atono.io`
- URL: `https://api.atono.io/api/users/batch`
- Auth: API key in header `X-API-KEY`

If the batch is too big (=>10 users), the users will be scheduled for creation in the background.

## Request body

- UsersCreationResource
  - `data` UserCreationResource[], required
    - `type` string, required
    - `attributes` UserCreationResourceUserAttributes, required
      - `email` string, email, required
      - `fullName` string, nullable, required
    - `relationships` UserCreationResourceUserRelationships, required
      - `inviterTeam` SingleRelationship, required
        - `links` RelationshipLinks, required
          - `self` string, uri, nullable, required
          - `related` string, uri, nullable, required
        - `data` ResourceIdentifier, required
          - `type` string, required: Identifies the type of the linked resource.
          - `id` string, required: The unique identifier of the linked resource.
        - `meta` unknown, required

## Response `200`

Users created

- unknown

## Other responses

- `202`: Users were scheduled for creation in the background.
- `400`: Users were not created due to internal constraints

---

[API](https://skmtc.dev/atono/apis/backend-api.md) · [All operations](https://skmtc.dev/atono/apis/backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/atono/apis/backend-api/revisions/78a57b1d8c3d?raw)
