---
title: "POST /users"
method: POST
path: "/users"
tags: ["Users"]
---

# POST /users

`POST /users`

Creates a new user

## Request body

- CreateUserRequest — Request body for creating a user.
  - `external_id` string, required — External ID for the user
  - `role` string, required — Role of the user

## Response `201`

Success

- UserSuccessResponse
  - `data` User, required — User object
    - `id` string, required — Unique user ID
    - `external_id` string, required — External ID for the user
    - `role` string, required — Role of the user

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `500` — Internal server error

## Changes

- **2026-03-13** `dd22ecbbe8e5` — 2 breaking, 1 warning
  - the request property `external_id` became required
  - removed the required property `data/externalId` from the response with the `201` status
  - removed the request property `externalId`
- **2026-03-06** `6768d46dbde8` — 5 info
  - added the new optional request property `external_id`
  - the request property `externalId` became optional
  - request property `externalId` deprecated
  - response property `data/externalId` deprecated
  - …1 more
- **2026-02-05** `635b1d55b735` — 1 info
  - added the required property `data/id` to the response with the `201` status
- **2026-02-02** `0f4bb2a098cb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/fragment-dev/apis/fragment-payments-api/changes/users/post.md)

---

[API](https://skmtc.dev/fragment-dev/apis/fragment-payments-api.md) · [All operations](https://skmtc.dev/fragment-dev/apis/fragment-payments-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fragment-dev/fragment-payments-api/revisions/249df29a7dfe/schema)
