Users
Get User by ID
REST API
- Overview
- Limits
- Errors
- GETGet Account Settings
- Authentication
- Users
- Ovevriew
- User Model
- POSTCreate User
- POSTCreate Token with API key
- DELDelete Token with API key
- DELFlush Tokens with API key
- GETList Users
- GETList Users by Full Name
- GETList Users by Tags
- GETGet User by ID
- GETGet User by Login
- GETGet User by Facebook ID
- GETGet User by Email
- GETGet User by External User ID
- PUTUpdate User
- DELDelete User by ID
- DELDelete User by External ID
- GETReset User Password
- Chat
- Content
- Push Notifications
- Custom Objects
- Address Book
- AI
Users
Get User by ID
Retrieve a user by ID.
GET
/
users
/
{user_id}
.json
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"
}
}
Recipes
1
1. Use 'Authorization' header to pass API key
curl -X GET \
-H 'Authorization: ApiKey 28irlNAGasWDSupO9Vw0BBMZfuHrAUYKpmroS9yBORI' \
https://api.quickblox.com/users/96752798.json
2
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.
Headers
A user session token. See our Authentication page to learn more about the session token.
API key from Dashboard. Expected format:
ApiKey {your_api_key}
. Must be used either QB-Token or Authorization.Responses
A successful response
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"
}
}
Was this page helpful?
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"
}
}