---
title: "Add User"
method: POST
path: "/api/v1/users/"
tags: ["Users"]
---

# Add User

`POST /api/v1/users/`

Add a new user to the database.<br><br>Requires superuser authentication to prevent unauthorized account creation.

## Request body

- UserCreate
  - `username` string, required
  - `password` string, required
  - `optins` object, nullable

## Response `201`

Successful Response

- UserRead
  - `id` string, uuid
  - `username` string, required
  - `profile_image` string, nullable, required
  - `store_api_key` string, nullable, required
  - `is_active` boolean, required
  - `is_superuser` boolean, required
  - `create_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `last_login_at` string, date-time, nullable, required
  - `optins` object, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2025-12-23** `b0ee9ddb8d9f` — 3 info
  - the endpoint scheme security `API key header` was added to the API
  - the endpoint scheme security `API key query` was added to the API
  - the endpoint scheme security `OAuth2PasswordBearer` was added to the API
- **2025-10-16** `9bd3e81318d7` — 2 warning
  - removed the optional property `detail/items/ctx` from the response with the `422` status
  - removed the optional property `detail/items/input` from the response with the `422` status

[Change history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v1/users/post.md)

---

[API](https://skmtc.dev/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.dev/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/b0ee9ddb8d9f/schema)
