POST
/
api
/
v1
/
user
/
authorize_user
curl --request POST \
  --url http:///%7B{base_url}%7D/api/v1/user/authorize_user \
  --header 'Content-Type: application/json' \
  --data '{
  "password": "<Your-password>",
  "user_name": "<Your-username>"
}'
{
  "error": false,
  "status": "success",
  "code": 200,
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImdhdXJhdkBqeW90aXN5YS5haSIsInVzZXJfbmFtZSI6ImhnbGkiLCJwaG9uZV9udW1iZXIiOiI5MTgzNDA1NjIwMzYiLCJmaXJzdF9uYW1lIjoiR2F1cmF2IiwibGFzdF9uYW1lIjoiS3VtYXIiLCJ3aGFyc2FwcF9udW1iZXIiOiI5MTc2NzY1ODQ2MDIiLCJpc19maXJzdF9sb2dpbiI6ZmFsc2UsImlhdCI6MTcwOTU0NzAxMywiZXhwIjoxNzI1MDk5MDEzLCJpc3MiOiJhcGkud2F0by5haSJ9.o_W-5oMzZMbESnhWfOeSYJ2iFjCWZv8G47spseqgLnE",
    "user_info": {
      "user_id": 1,
      "email": "abc@xyz.com",
      "user_name": "<username>",
      "phone_number": "<phone_number>",
      "first_name": "<first_name>",
      "last_name": "<last_name>",
      "wharsapp_number": "<whatsapp_number>",
      "is_first_login": false
    }
  }
}

Body

application/json · object

Response

200 - application/json

OK

The response is of type object.