POST
/
login.json
curl -X POST \
-H "Content-Type: application/json" \
-H "QB-Token: cf5709d6013fdb7a6787fbeb8340afed8aec4c69" \
-d '{  
  "login":"Andrew",
  "password":"mypassword"
}' \
https://api.quickblox.com/login.json
{
  "user": {
    "id": 96705448,
    "full_name": "Andrew Lee",
    "email": "andrew@gmail.com",
    "login": "Andrew",
    "phone": "+9923474236",
    "website": "https://myapp.com",
    "created_at": "2019-08-26T20:53:42Z",
    "updated_at": "2019-08-26T21:38:38Z",
    "last_request_at": "2019-08-26T21:38:44Z",
    "external_user_id": null,
    "facebook_id": "89987878",
    "blob_id": null,
    "custom_data": null,
    "age_over16": true,
    "allow_statistics_analysis": false,
    "allow_sales_activities": false,
    "parents_contacts": "",
    "user_tags": "admin,co-workers,design"
  }
}

Recipes

After an application session has been created, lets your users to log in to their account with login/email and password. There are the following login options available:

  • Log in with login/email and password.
  • Log in via Facebook.
  • Log in via Firebase phone number (SMS).

Body Parameters

login
string
User login.
email
string
User email.
password
string
User password.
provider
string
Possible providers: facebook, firebase_phone.
keys
object
firebase_phone
object

Headers

QB-Token
string
required
A user or application session token. See our Authentication page to learn more about session tokens.

Responses

curl -X POST \
-H "Content-Type: application/json" \
-H "QB-Token: cf5709d6013fdb7a6787fbeb8340afed8aec4c69" \
-d '{  
  "login":"Andrew",
  "password":"mypassword"
}' \
https://api.quickblox.com/login.json
{
  "user": {
    "id": 96705448,
    "full_name": "Andrew Lee",
    "email": "andrew@gmail.com",
    "login": "Andrew",
    "phone": "+9923474236",
    "website": "https://myapp.com",
    "created_at": "2019-08-26T20:53:42Z",
    "updated_at": "2019-08-26T21:38:38Z",
    "last_request_at": "2019-08-26T21:38:44Z",
    "external_user_id": null,
    "facebook_id": "89987878",
    "blob_id": null,
    "custom_data": null,
    "age_over16": true,
    "allow_statistics_analysis": false,
    "allow_sales_activities": false,
    "parents_contacts": "",
    "user_tags": "admin,co-workers,design"
  }
}