Skip to content
gist.link ↗

usageMeters

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

The billable usage meter catalog. Any authenticated caller.

billing:query:usageMeters

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 {
usageMeters: [UsageMeter!]!
}

This query takes no arguments.

[UsageMeter!]! — 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 UsageMeters { usageMeters { key name created_at updated_at } }",
"variables": {}
}
JSON