Toloka documentation

Get user metadata

Warning

We recommend that you use the toloka.dev domain for API requests. The toloka.yandex.com domain is still supported but it will be deprecated soon.

Gets user data by user_id.

Request

GET https://toloka.dev/api/v1/user-metadata/<user_id>
Authorization: OAuth <OAuth token>
GET https://sandbox.toloka.dev/api/v1/user-metadata/<user_id>
Authorization: OAuth <OAuth token>

Path parameters

Parameter Overview
user_id User ID.

Headers

Title Overview
Authorization A token for account authorization. Add OAuth as a prefix.

Response

Contains user metadata in JSON format.

{
  "id": "123cdfggh",
  "country": "EN",
  "languages": [
    "EN",
    "FR"
    ],
  "adult_allowed": true,
  "attributes": {
    "country_by_phone": "EN",
    "country_by_ip": "EN",
    "client_type": "TOLOKA_APP",
    "user_agent_type": "OTHER",
    "device_category": "SMARTPHONE",
    "os_family": "IOS",
    "os_version": 15,
    "os_version_major": 15,
    "os_version_minor": 0,
    "os_version_bugfix": 0
  }
}