curl --request GET \
--url https://api.diversion.dev/v0/organizations/subscription-info \
--header 'Authorization: Bearer <token>'{
"items": [
{
"organization": {
"id": "<string>",
"name": "<string>",
"owner": {
"id": "<string>",
"image": "<string>",
"email": "[email protected]",
"full_name": "<string>",
"name": "<string>",
"tier": "EDUCATION"
}
},
"members": {
"current_count": 123,
"allowed_count": 123
},
"storage": {
"current_gb": 123,
"allowed_gb": 123
},
"subscription": {
"is_on_trial": true,
"in_exception_list": true,
"has_subscription_diff": true,
"trial_end_time": "2023-11-07T05:31:56Z"
}
}
]
}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": {
"id": "<string>",
"image": "<string>",
"email": "[email protected]",
"full_name": "<string>",
"name": "<string>",
"tier": "EDUCATION"
}
},
"members": {
"current_count": 123,
"allowed_count": 123
},
"storage": {
"current_gb": 123,
"allowed_gb": 123
},
"subscription": {
"is_on_trial": true,
"in_exception_list": true,
"has_subscription_diff": true,
"trial_end_time": "2023-11-07T05:31:56Z"
}
}
]
}This API uses OAuth 2 with the implicit grant flow
Optional list of organization IDs to filter results
1 - 128Organization subscription information
Show child attributes
Show child attributes
Organization identifier
Organization name
User details
Show child attributes
URL of the user image. If updating the image, could be a base64 encoded image.
524288The tier of the user
EDUCATION, INDIE, PROFESSIONAL, ENTERPRISE, UNKNOWN Show child attributes
Whether the organization is on trial
Whether the organization is in the exception list
Whether there are subscription breaches (usage exceeds plan)
When the trial ends (if on trial)