Get current user
GET/api/v1/users/me
Return User for current token
Request
Query Parameters
include string
Include associations (delimited with comma). Available associations: specializations, businesses_managed, access_groups, resource_permissions
Responses
- 200
Return User for current token
- application/vnd.api+json
- Schema
- Example (from schema)
- Example
Schema
data
object
required
id stringrequired
type stringrequired
Possible values: [users
]
links
object
required
self stringrequired
attributes
object
required
accepted-food-detective boolean
allergies string
avatar
object
url stringrequired
birthday string
city string
confirmed boolean
connected-to-partoo boolean
country string
country-code string
deleted boolean
detected-language
email string
favourite-drink string
favourite-food string
food-detective-status string
gender string
invitation-accepted-at string
invited-at string
language string
monthly-bars-budget number
monthly-delivery-takeaway-budget number
monthly-restaurants-budget number
name string
partoo-user-id string
permissions-role string
phone string
phone-country-code string
phone-country-prefix string
post-code string
recovery-email string
region
region-code string
registered-via-oauth boolean
reviews-count number
role string
sign-in-count number
street string
street-number string
subscription-not-terminated boolean
unconfirmed-email string
relationships
object
required
specializations
object
required
links
object
required
self stringrequired
related stringrequired
{
"data": {
"id": "string",
"type": "users",
"links": {
"self": "string"
},
"attributes": {
"accepted-food-detective": true,
"allergies": "string",
"avatar": {
"url": "string"
},
"birthday": "string",
"city": "string",
"confirmed": true,
"connected-to-partoo": true,
"country": "string",
"country-code": "string",
"deleted": true,
"detected-language": {},
"email": "string",
"favourite-drink": "string",
"favourite-food": "string",
"food-detective-status": "string",
"gender": "string",
"invitation-accepted-at": "string",
"invited-at": "string",
"language": "string",
"monthly-bars-budget": 0,
"monthly-delivery-takeaway-budget": 0,
"monthly-restaurants-budget": 0,
"name": "string",
"partoo-user-id": "string",
"permissions-role": "string",
"phone": "string",
"phone-country-code": "string",
"phone-country-prefix": "string",
"post-code": "string",
"recovery-email": "string",
"region": {},
"region-code": "string",
"registered-via-oauth": true,
"reviews-count": 0,
"role": "string",
"sign-in-count": 0,
"street": "string",
"street-number": "string",
"subscription-not-terminated": true,
"unconfirmed-email": "string"
},
"relationships": {
"specializations": {
"links": {
"self": "string",
"related": "string"
}
}
}
}
}
{
"data": {
"id": "583c82ab-04c7-4ce3-91f3-aceaa12a020e",
"type": "users",
"links": {
"self": "/users/583c82ab-04c7-4ce3-91f3-aceaa12a020e"
},
"attributes": {
"accepted-food-detective": false,
"allergies": "peanuts, cats",
"avatar": {
"url": "https://foodetective-staging-backend-data.s3.amazonaws.com/uploads/user/avatar/583c82ab-04c7-4ce3-91f3-aceaa12a020e/af4f0d34-79db-49aa-9904-fd6cf88eb234.jpeg"
},
"birthday": "2000-06-10T00:00:00.000Z",
"city": "Berlin",
"confirmed": true,
"connected-to-partoo": true,
"country": "Germany",
"country-code": "DE",
"deleted": false,
"detected-language": null,
"email": "bo@example.com",
"favourite-drink": "beer & whisky",
"favourite-food": "burger",
"food-detective-status": "not_requested",
"gender": "male",
"invitation-accepted-at": "2023-12-20T15:04:59.503Z",
"invited-at": "2023-12-20T14:04:59.503Z",
"language": "en",
"monthly-bars-budget": 100,
"monthly-delivery-takeaway-budget": 200,
"monthly-restaurants-budget": 545,
"name": "BOs Example 2",
"partoo-user-id": "64397c6867c3c6d052075cdc",
"phone": "8005555535",
"phone-country-code": "GB",
"phone-country-prefix": "44",
"post-code": "10965",
"recovery-email": "ddd@ddd.pl",
"region": null,
"region-code": "DE-BE",
"registered-via-oauth": false,
"reviews-count": 0,
"role": "business_member",
"sign-in-count": 4496,
"street": "Columbiadamm",
"street-number": "124",
"subscription-not-terminated": false,
"unconfirmed-email": "bo@exampl.com"
},
"relationships": {
"specializations": {
"links": {
"self": "/users/583c82ab-04c7-4ce3-91f3-aceaa12a020e/relationships/specializations",
"related": "/users/583c82ab-04c7-4ce3-91f3-aceaa12a020e/specializations"
}
}
}
}
}
Loading...