API Reference
subscription
1 endpoint
GET
/api/v1/users/me/subscriptionGet My Subscription
Get the current user's subscription tier and entitlements.
Query parameters
| default_backend | string | default: "primary" |
Responses
200Successful Response
| Field | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| tier* | string | |||||||||||||
| display_name* | string | |||||||||||||
| status* | string | |||||||||||||
| started_at* | string (date-time) | |||||||||||||
| valid_until | string (date-time) | null | |||||||||||||
| entitlements* | Entitlements | |||||||||||||
object · Entitlements
| ||||||||||||||
422Validation Error
| Field | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| detail | ValidationError[] | |||||||||||||
array items · ValidationError
| ||||||||||||||
Example request
curl -X GET "https://api.davi.social/api/v1/users/me/subscription" \
-H "Authorization: Bearer <token>"