Buyer membership status in a workspace
Requires the X-Customer-Session header. The enterprise service API key is OPTIONAL: with a key, the workspace is the one pinned to it (workspaceId is ignored); without a key, workspaceId is REQUIRED (422 if missing). active is true only with an ACTIVE, unexpired membership. If none is current, membership returns the most recent one (expired, cancelled or pending payment) so the landing page can choose the CTA; null = never a member of that workspace.
/customer/membershipAuthorizationAPI key · headerrequiredAPI key prefixed with Bearer . Alternative: the x-api-key header with the raw key. Available scopes: read and write (see /.well-known/oauth-protected-resource).
x-api-keyAPI key · headerrequiredRaw API key (without Bearer ), alternative to Authorization.
workspaceIdstringRequired only without an enterprise service API key. Ignored with a key.
X-Workspace-IdstringActive workspace to operate on. Optional: when omitted, the default workspace of the user who owns the key is used (pickActiveOrg).
OK
dataCustomerMembershipStaterequiredShow propertiesHide properties
activebooleanrequiredtrue only with an ACTIVE, unexpired membership in this workspace.
membershipobject | nullrequiredShow propertiesHide properties
idstringrequiredstatusstringrequiredPENDINGACTIVEEXPIREDCANCELLEDPAUSEDplanMembershipPlanrequiredShow propertiesHide properties
idstringrequiredorganizationIdstring | nullrequiredShow propertiesHide properties
stringnullnamestringrequireddescriptionstring | nullrequiredShow propertiesHide properties
stringnullpricenumberrequiredcurrencystringrequiredbillingCyclestringrequiredMONTHLYQUARTERLYSEMIANNUALANNUALLIFETIMEbenefitsobjectrequiredShow propertiesHide properties
presalebooleanrequiredfreeTicketbooleanrequireddiscountbooleanrequiredexclusiveContentbooleanrequiredmerchbooleanrequiredisActivebooleanrequiredsortOrderintegerrequiredcreatedAtstringrequiredstartedAtstring | nullrequiredShow propertiesHide properties
stringnullexpiresAtstring | nullrequirednull = LIFETIME or a membership with no expiry.
Show propertiesHide properties
stringnullautoRenewbooleanrequirednullMissing or invalid credential.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsanyInsufficient role or resource not accessible.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsanyResource does not exist or is out of scope.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsanyOperation error.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsany
