API

APIlink

GET/api/v1/users

Creating a user | New Summary

Creates a new user account in the system.

The endpoint validates the request payload, checks for duplicate email addresses, hashes the user's password, and returns the newly created user object.

Authentication is required.

lock

Requires Bearer token authentication.

Headers

AuthorizationBearer {{token}}

Responses

New response

{
  "success": true,
  "message": "User created successfully.",
  "data": {
    "id": "65c82d1f9a0c1c3b9e012345",
    "name": "John Doe",
    "email": "john@example.com",
    "role": "user",
    "createdAt": "2026-07-20T12:00:00Z"
  }
}
boltTry it
env
GEThttps://api.example.com/v1/api/v1/users

Authorization

Authorization

Headers

Authorization

Code samples

curl -X GET 'https://api.example.com/v1/api/v1/users'