Recipes
Get user by id with API key
1. Use 'Authorization' header to pass API key
curl -X GET \
-H 'Authorization: ApiKey 28irlNAGasWDSupO9Vw0BBMZfuHrAUYKpmroS9yBORI' \
https://api.quickblox.com/users/96752798.json
2. As a result, the API returns a user with the specified id in the path params.
curl -X GET \
-H 'Authorization: ApiKey 28irlNAGasWDSupO9Vw0BBMZfuHrAUYKpmroS9yBORI' \
https://api.quickblox.com/users/96752798.json
Path Parameters
ID of the user. Generated automatically by the server after user creation.
A user session token. See
Authentication page to learn more about the session token.
Authorization
string
default:"ApiKey {your_api_key}"
required
API key from Dashboard. Expected format: ApiKey {your_api_key}
. Must be used either QB-Token or Authorization.
Responses
A successful response
allow_statistics_analysis
curl -X GET \
-H "QB-Token: 6f8c8931e80d0d828341ef218e95584ac48195db" \
https://api.quickblox.com/users/96752798.json
{
"user": {
"id": 96752798,
"full_name": "Peter Smith",
"email": "peter@gmail.com",
"login": "Peter",
"phone": "+73123555",
"website": "https://mysite.com",
"created_at": "2019-08-27T20:19:08Z",
"updated_at": "2019-08-27T20:19:08Z",
"last_request_at": "2019-08-27T20:49:21Z",
"external_user_id": 1236672,
"facebook_id": "8887366",
"twitter_id": "9982366",
"blob_id": null,
"custom_data": "lead of marketing team",
"age_over16": true,
"allow_statistics_analysis": true,
"allow_sales_activities": true,
"parents_contacts": "",
"user_tags": "marketing,seo"
}
}