UsersCreate Users
Users

POST /users

Create a new user account with the provided information

curl -X POST "https://api.example.com/v2/users" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "John Doe",
  "email": "john@example.com",
  "password": "secretPassword123"
}'
{
  "id": 123,
  "name": "John Doe",
  "email": "john@example.com",
  "role": "user",
  "created_at": "2024-12-25T10:00:00Z",
  "last_active": "2024-12-25T10:00:00Z"
}
POST
/users
POST
Security Scheme
X-API-Keystring
Required

API key for authentication. Get your API key from the dashboard.

API key for authentication. Get your API key from the dashboard.
Content-Typestring
Required

The media type of the request body

Options: application/json
namestring
Required
Min length: 2 • Max length: 100
emailstring
Required
Format: email
passwordstring
Required
Format: password • Min length: 8
rolestring
Options: admin, user, viewer
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. API key for authentication. Get your API key from the dashboard.

Responses