GET/v1/integration/account/context
Get account context
Returns workspace context for the authenticated user's account (plan, subscription state, entitlements snapshot). Prefer this over branching on plan names in clients.
operationIdaccount.contextAccountBearer token
Authentication
Bearer token with the integration ability. Create tokens in Settings → API.
Authorization: Bearer <integration-personal-access-token>
Example request
curl -sS -X GET 'https://api.asklytic.com/v1/integration/account/context' \
-H 'Authorization: Bearer $INTEGRATION_TOKEN' \
-H 'Accept: application/json'Responses
`AccountContextResource`
Name
Type
Required
data
AccountContextResource
Required
account
AccountResource
Required
subscription
object | null
Required
plan
any
Required
delinquent_plan
any
Required
subscription_payment_required
boolean
Required
can_checkout
boolean
Required
entitlements
string
Required
usage
object
Required
creditsOmitted when credits.enabled AppSetting is false — keep optional in OpenAPI via when().
object
optional
Unauthenticated
Name
Type
Required
messageError overview.
string
Required