User details
GET /v0/users/me
Get user details of the authenticated user.
- 200
- 400
- 401
- 429
End user details
- application/json
- Schema
- Example (from schema)
- Example
Schema
- userId string required
is the userId given in the User Token if not ES Connect authenticated or the ES Connect user id if user is authenticated against ES Connect.
- esConnect boolean required
is false for a not ES Connect authenticated user but is true for a ES Connect authenticated user.
- hasActiveSubscription boolean nullable
is true if the user has an active subscription but is false if the user has no active subscription. Returns null if the user is not ES Connect authenticated.
- email string nullable
email value will present only for the Epidemic Sound users and will be null otherwise
{
"userId": "string",
"esConnect": true,
"hasActiveSubscription": true,
"email": "string"
}
{
"userId": "8c2aa97b-2b00-4b8c-93d5-809a73a45436",
"esConnect": false,
"hasActiveSubscription": null,
"email": null
}
Bad request.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- message string required
Human readable message
errors object[]
Array [key string requiredError key
messages string[] requiredError messages
]
{
"message": "string",
"errors": [
{
"key": "string",
"messages": [
"string"
]
}
]
}
{
"message": "Bad request"
}
Unauthorized. Most likely your access token has expired.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- message string required
Human readable message
errors object[]
Array [key string requiredError key
messages string[] requiredError messages
]
{
"message": "string",
"errors": [
{
"key": "string",
"messages": [
"string"
]
}
]
}
{
"message": "Invalid credentials"
}
Rate limit exceeded.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- message string required
Human readable message
errors object[]
Array [key string requiredError key
messages string[] requiredError messages
]
{
"message": "string",
"errors": [
{
"key": "string",
"messages": [
"string"
]
}
]
}
{
"message": "Rate limit exceeded"
}