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 boolean requiredis true if the user has an active subscription and false if the user has no active subscription.
subscriptionExpiresAt date-time nullable requiredif 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-06-18T13:32:49.632Z"
}
}
{
"epidemicSound": {
"hasActiveSubscription": true,
"subscriptionExpiresAt": "2024-07-17T23:22:48Z"
}
}
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"
}
Loading...