curl --request GET \
--url https://api.diversion.dev/v0/organizations/subscription-info \
--header 'Authorization: Bearer <token>'
{
"items": [
{
"organization": {
"id": "<string>",
"name": "<string>",
"owner": {
"image": "<string>",
"email": "jsmith@example.com",
"full_name": "<string>",
"id": "<string>",
"name": "<string>",
"tier": "EDUCATION"
}
},
"members": {
"current_count": 123,
"allowed_count": 123
},
"storage": {
"current_gb": 123,
"allowed_gb": 123
},
"subscription": {
"is_on_trial": true,
"trial_end_time": "2023-11-07T05:31:56Z",
"in_exception_list": true,
"has_subscription_diff": true
}
}
]
}
Get subscription and plan details for organizations the user is a member of
curl --request GET \
--url https://api.diversion.dev/v0/organizations/subscription-info \
--header 'Authorization: Bearer <token>'
{
"items": [
{
"organization": {
"id": "<string>",
"name": "<string>",
"owner": {
"image": "<string>",
"email": "jsmith@example.com",
"full_name": "<string>",
"id": "<string>",
"name": "<string>",
"tier": "EDUCATION"
}
},
"members": {
"current_count": 123,
"allowed_count": 123
},
"storage": {
"current_gb": 123,
"allowed_gb": 123
},
"subscription": {
"is_on_trial": true,
"trial_end_time": "2023-11-07T05:31:56Z",
"in_exception_list": true,
"has_subscription_diff": true
}
}
]
}
This API uses OAuth 2 with the implicit grant flow
Optional list of organization IDs to filter results
Organization subscription information
The response is of type object
.