GuideLab API

Get current organization subscription

Returns the latest subscription record for the active lab organization. Read-only and available even when billing is past due.

GET
/organization/subscription

Returns the latest subscription record for the active lab organization. Read-only and available even when billing is past due.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Response Body

application/json

curl -X GET "https://example.com/organization/subscription"
{  "subscription": {    "id": "string",    "plan": "string",    "status": "string",    "periodStart": "string",    "periodEnd": "string",    "cancelAtPeriodEnd": true,    "seats": 0,    "trialStart": "string",    "trialEnd": "string",    "hasBillingCustomer": true,    "billingInterval": "string",    "billingCurrency": "string",    "catalogVersion": "string",    "storageAddOnUnits": 0,    "pastDueAt": "string",    "pastDueGraceEndsAt": "string",    "pendingStorageAddOnUnits": 0,    "pendingStorageAddOnAt": "string",    "pendingPlan": "base",    "pendingPlanBillingInterval": "month",    "pendingPlanAt": "string",    "usage": {      "cases": {        "windowStart": "string",        "windowEnd": "string",        "used": 0,        "included": 0,        "alert": "normal",        "nonBlocking": true      },      "storage": {        "usedBytes": 0,        "includedBytes": 0,        "addOnBytes": 0,        "alert": "normal",        "nonBlocking": true      }    }  }}
Empty
Empty