Skip to main content
POST
/
auth
/
register
Register a new user
curl --request POST \
  --url https://jamquest-dev.techboo.net/api/v1/auth/register \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "email": "[email protected]",
  "phone": "<string>",
  "password": "<string>",
  "is_dj": true
}
'
{
  "status": "ok",
  "message": "<string>",
  "data": {
    "user": {
      "id": 123,
      "name": "<string>",
      "email": "[email protected]",
      "phone": "<string>",
      "is_dj": true,
      "wallet_balance": 123,
      "fee_upcoming_artist": 123,
      "fee_popular_song": 123,
      "online": 123,
      "played": 123,
      "city": "<string>",
      "state": "<string>",
      "country": "<string>",
      "latitude": 123,
      "longitude": 123,
      "radius": 123,
      "email_verified": true,
      "phone_verified": true,
      "rating": 123,
      "rating_count": 123
    },
    "token": "<string>"
  }
}

Body

application/json
name
string
required

The full name of the user.

Maximum string length: 255
email
string<email>
required

The email address of the user. Must be unique.

phone
string
required

The phone number of the user. Must be unique.

password
string
required

The user's password. Must be at least 8 characters long.

Minimum string length: 8
is_dj
boolean
required

Indicates whether the user is registering as a DJ (true) or a regular user (false).

Response

User registered successfully

status
string
Example:

"ok"

message
string
data
object