---
title: "Register a user."
method: POST
path: "/users"
tags: ["Users"]
---

# Register a user.

`POST /users`

## Request body

- object
  - `email` string
  - `first_name` string
  - `last_name` string
  - `password` string
  - `roles` string

## Response `201`

- object
  - `data` object
    - `created_at` string
    - `email` string
    - `first_name` string
    - `id` string
    - `kratos_id` string
    - `last_name` string
    - `roles` string
    - `updated_at` string
  - `status` 'success'

## Other responses

- `400` — Fail due to user invalid input
- `500` — Unexpected error occurred

## Changes

- **2024-02-08** `a2179d15ad2f` — 1 info
  - endpoint added

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

---

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