---
title: "Create Admin User Endpoint"
method: POST
path: "/admin/users"
tags: ["admin"]
---

# Create Admin User Endpoint

`POST /admin/users`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/admin/users`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Create a new admin user. Requires admin privileges.

## Request body

- UserCreate
  - `first_name` string, required
  - `last_name` string, required
  - `brand_name` string, nullable
  - `role` string, required
  - `whatsapp` string, nullable
  - `email` string, email, required
  - `password` string, required
  - `organization_name` string, nullable
  - `email_notifications_consent` boolean
  - `account_type` 'manufacturer' | 'brand', nullable
  - `referral_token` string, nullable
  - `invitation_token` string, nullable
  - `country` string, nullable

## Response `200`

Successful Response

- User
  - `first_name` string, required
  - `last_name` string, required
  - `brand_name` string, nullable
  - `role` string, required
  - `whatsapp` string, nullable
  - `email` string, email, required
  - `id` string, uuid, required
  - `is_active` boolean, required
  - `is_admin` boolean, required
  - `is_approved` boolean
  - `email_notifications_consent` boolean
  - `email_verified` boolean
  - `onboarding_completed` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
