AuthnAuthzAPI
Get Started
Get Started
  1. Registration & Onboarding
  • Overview
  • Registration & Onboarding
    • Register a new user
      POST
    • Verify email address
      POST
    • Resend verification code
      POST
  • Authentication
    • Login user
      POST
    • Logout user
      POST
    • Request a password reset email
      POST
    • Verify password reset token
      POST
    • Update password
      POST
    • Refresh access token
      POST
    • Get current authenticated user
      GET
  • OAuth Authentication
    • OAuth authentication
      GET
    • OAuth callback
      GET
  • Session Management
    • Get all sessions
      GET
    • Revoke session
      DELETE
    • Revoke all sessions
      DELETE
  • Profile Management
    • View profile information
      GET
    • Update profile information
      PATCH
  1. Registration & Onboarding

Register a new user

Developing
POST
/auth/register
Creates a new user account in the system using the provided registration details such as name, email address, and password. After successful registration, the system generates a verification code and sends it to the user’s email address to confirm ownership. The account typically remains in a pending or unverified state until the email verification process is completed.

Request

Body Params application/jsonRequired

Examples

Responses

🟢201Success
application/json
Bodyapplication/json

🟠400Validation Error
🟠409Email Already Exists
🟠429Rate Limit Exceeded
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'http://localhost:3000/api/v1/auth/register' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Willard Lueilwitz",
    "email": "taryn82@hotmail.com",
    "password": "DLCO2lz$Pj@RSpg"
}'
Response Response Example
201 - Example
{
    "status": "success",
    "message": "User created successfully.",
    "data": {
        "user": {
            "id": "b899f5c7bf633758f754b00b5c5e017ee1c8d313",
            "name": "Marty Mitchell",
            "email": "davonte56@hotmail.com",
            "account_status": "suspend",
            "email_verified": true,
            "email_verified_at": "2026-05-18T08:06:42.478Z",
            "created_at": "2026-05-18T08:06:42.481Z",
            "updated_at": "2026-05-18T08:06:42.481Z"
        }
    }
}
Modified at 2026-03-07 02:24:42
Previous
Registration & Onboarding
Next
Verify email address
Built with