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

# Add User

`POST /api/v1/users/`

Add a new user to the database.

## 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-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/9bd3e81318d7/schema)
