Skip to main content

Get workspace subscription

Enterprise Only

This endpoint is only available in the Enterprise package and requires the authenticated user to be a Super Admin.

Method: GET

URL: https://example.com/<MIXPOST_CORE_PATH>/api/panel/workspaces/{workspaceUuid}/subscription

Authorization: Bearer <token>

Response:

{
"name": "default",
"platform_subscription_id": "sub_1234567890",
"platform_plan_id": "price_1234567890",
"plan": {
"id": 1,
"name": "Pro Plan",
"amount": 1999,
"cycle": "monthly"
},
"status": "active",
"recurring": "monthly",
"trial_ends_at": null,
"paused_from": null,
"ends_at": null
}

Returns null if no subscription exists.