User subscription details
GET/v0/users/me/subscription
Get subscription details for the authenticated user.
Responses
- 200
- 400
- 401
- 429
End user subscription details
- application/json
- Schema
- Example (from schema)
- Example
Schema
epidemicSound
object
required
hasActiveSubscription booleanrequired
is true if the user has an active subscription and false if the user has no active subscription.
subscriptionExpiresAt date-timenullablerequired
if the subscription has been canceled, but is not yet expired, this will return the expiry datetime. In all other cases this will be null.
{
"epidemicSound": {
"hasActiveSubscription": true,
"subscriptionExpiresAt": "2024-07-29T15:51:28.071Z"
}
}
{
"epidemicSound": {
"hasActiveSubscription": true,
"subscriptionExpiresAt": "2024-11-10T09:01:46Z"
}
}
Bad request.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
message stringrequired
Human readable message
errors
object[]
key stringrequired
Error key
messages string[]required
Error 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
Array [
]
message stringrequired
Human readable message
errors
object[]
key stringrequired
Error key
messages string[]required
Error messages
{
"message": "string",
"errors": [
{
"key": "string",
"messages": [
"string"
]
}
]
}
{
"message": "Invalid credentials"
}
Rate limit exceeded.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
message stringrequired
Human readable message
errors
object[]
key stringrequired
Error key
messages string[]required
Error messages
{
"message": "string",
"errors": [
{
"key": "string",
"messages": [
"string"
]
}
]
}
{
"message": "Rate limit exceeded"
}
Loading...