Get user by id
GET/api/v2/users/:user_id
Retrieve a user by their id, or 'me' for the current user
Request
Path Parameters
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
Schema
Unique ID of the user
Name of the user
Email of the user
Possible values: [admin
, group_manager
, business_manager
]
Role of the user
Whether the user has confirmed their email
Language of the user
permissions
object
required
Possible values: [read
, write
]
Possible values: [read
, write
]
Possible values: [read
, write
]
Possible values: [read
, write
]
Possible values: [read
, write
]
Possible values: [read
, write
]
Possible values: [read
, write
]
Possible values: [read
, write
]
Possible values: [read
, write
]
Possible values: [read
, write
]
Possible values: [read
, write
]
Possible values: [read
, write
]
Possible values: [read
, write
]
Possible values: [read
, write
]
Possible values: [read
, write
]
{
"id": "70996641-8d6e-4b10-bee5-44633bc306e8",
"name": "John Doe",
"email": "john.doe@example.com",
"role": "business_manager",
"email_confirmed": true,
"language": "en",
"permissions": {
"home": [
"read"
],
"dashboard": [
"read"
],
"website": [
"read"
],
"reservations": [
"read"
],
"crm": [
"read"
],
"reviews": [
"read"
],
"suppliers": [
"read"
],
"product_catalog": [
"read"
],
"basic_information": [
"read"
],
"opening_hours": [
"read"
],
"activity": [
"read"
],
"photos": [
"read"
],
"posts": [
"read"
],
"presence": [
"read"
],
"business_creation": [
"read"
]
}
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
HTTP status code
Error message
Possible values: [query
, body
, response
, param
]
Where in the request the error occurred
errors
object[]
required
Possible values: non-empty
Path to the property with the error
constraints
object
required
Error message
{
"statusCode": 404,
"message": "Cannot find item",
"location": "query",
"errors": [
{
"path": "business.id",
"constraints": {
"object_required_property": "Required property"
}
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}