cURL
curl --request POST \ --url https://jamquest-dev.techboo.net/api/v1/auth/login \ --header 'Content-Type: application/json' \ --data ' { "password": "<string>", "email": "[email protected]", "phone": "<string>" } '
{ "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>" } }
Authenticates a user and returns a token. Users can login with either email/password or phone/password combination.
The user's password.
The email address of the user. Required if phone is not provided.
The phone number of the user. Required if email is not provided.
Login successful
"ok"
Show child attributes