Get user

GET /v1/client/user

Returns information and identifier of the requesting user

Responses

GET /v1/client/user
curl \
 -X GET https://api.bitlabs.ai/v1/client/user \
 -H "X-Api-Token: $API_KEY" \
 -H "X-User-Id: $API_KEY"
Response examples (200)
{
  "data": {
    "app_id": 42,
    "uid": "string",
    "user_id": 42,
    "username": "string",
    "email": "hello@example.com",
    "consent_general": "2022-01-01T12:00:00Z",
    "consent_analytics": "2022-01-01T12:00:00Z",
    "consent_advertising": "2022-01-01T12:00:00Z",
    "custom_fields": [
      {
        "id": "string",
        "value": "string"
      }
    ],
    "offerwall_code": "string",
    "country": "US, GB, DE, etc."
  }
}
Response examples (406)
{
  "error": {
    "details": {
      "http": "406 Not Acceptable",
      "msg": "vpn detected"
    }
  }
}