Skip to content
gist.link ↗

subscription

Query Billing API — POST https://billing.api.gist.link/graphql

The current organization’s subscription (null if never subscribed). Any org member.

billing:query:subscription

The calling IAM key must hold this permission (or a wildcard that covers it: billing:query:* or billing:*) and the access token must have been minted with audience=billing. See Permissions.

type Query {
subscription: Subscription
}

This query takes no arguments.

Subscription — see the Billing types reference.

Terminal window
curl https://billing.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Subscription { subscription { uuid status created_at updated_at } }",
"variables": {}
}
JSON