Get user data for publishers

GET /v1/publishers/users/{userId}/profile

Get User Data for Publishers returns the user data for the given user id.

Path parameters

  • userId string Required

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object

      Additional properties are allowed.

      Hide data attributes Show data attributes object
      • country string
      • main_language string
      • spoken_languages array[string]
      • zipcode string
      • birthdate string
      • gender string

        Values are MALE, FEMALE, or OTHER.

      • username string Deprecated
      • banned boolean

        If true, the user is banned from using the app.

        Default value is false.

      • std_questions array[object]
        Hide std_questions attributes Show std_questions attributes object
        • id string Required
        • values array[string] Required
  • 404

    User not found

GET /v1/publishers/users/{userId}/profile
curl \
 --request GET 'https://api.bitlabs.ai/v1/publishers/users/{userId}/profile' \
 --header "X-S2S-Token: $API_KEY"
Response examples (200)
{
  "data": {
    "country": "string",
    "main_language": "string",
    "spoken_languages": [
      "string"
    ],
    "zipcode": "string",
    "birthdate": "1999-01-01",
    "gender": "MALE",
    "username": "string",
    "banned": false,
    "std_questions": [
      {
        "id": "string",
        "values": [
          "string"
        ]
      }
    ]
  }
}