ℹ️User Details
This step shows how to get details of a specific user.
Important Note! Constructor Groups’ V1 API has been retired and is no longer available to new customers. Please use the Groups V2 API going forward. Link to V2 API documentation: https://developer.perculus.com/v2-en
You can view the details of a user in two different ways:
Getting User Details with USER_ID
Example payload:
curl --location --request GET 'https://<DOMAIN>/xapi/user/<USER_ID>' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: x-www-form-urlencoded'
Example response:
{
"user_id": "<USER_ID>",
"name": "john",
"surname": "Doe",
"username": "johndoe",
"email": "[email protected]",
"role": "u",
"mobile": "",
"login_allowed": true,
"status": 1,
"lang": "tr-TR",
"timezone": null,
"expires_at": null,
"creation_date": "2024-08-01T00:45:03.8888474+00:00",
"updating_date": null
}
Getting User Details with USERNAME
Example payload:
curl --location --request GET 'https://<DOMAIN>/xapi/user/<USERNAME>' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: x-www-form-urlencoded'
Example response:
{
"user_id": "<USER_ID>",
"name": "john",
"surname": "Doe",
"username": "johndoe",
"email": "[email protected]",
"role": "u",
"mobile": "",
"login_allowed": true,
"status": 1,
"lang": "tr-TR",
"timezone": null,
"expires_at": null,
"creation_date": "2024-08-01T00:45:03.8888474+00:00",
"updating_date": null
}
Last updated
Was this helpful?