{% extends "docs/base.html" %} {% block docs_content %}
Create a new user (staff only).
POST /api/v1/usersJSON body:
usernameemailnameis_staff (optional)curl \
--request POST \
--header "Authorization: Bearer $PEARING_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{"username": "janedoe", "email": "jane@example.com", "name": "Jane Doe"}' \
"$PEARING_API_URL/v1/users"201 Created with created user. The email field is part of this staff-only response.
{
"uuid": "...",
"username": "janedoe",
"email": "<private>",
"name": "Jane Doe",
"is_active": true
}409 Conflict for duplicate username/email or validation constraints.Common auth errors are documented on the API overview page.