ai

GET /v1/ai/site-agent/allowance

How many self-serve site checks are left this month.

All ai endpoints

Authentication

Send an API key as a bearer token. The key must carry the sites.view permission; a key without it is refused with 403, not 404.

Where your organisation id goes

This endpoint takes org_id as a query parameter. Leave it out and the call covers your whole tenancy subtree; send it to narrow the call to one organisation.

Your organisation id is on the API keys screen in your dashboard, beside the key itself. It is the same id in every call you make.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X GET https://api.zinndigital.com/v1/ai/site-agent/allowance \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

One allowance per organization per calendar month, sized by how many sites the organization has — not per site. Free grants from staff are added to it. Checks run from the **support ticket form are free and unmetered** and never appear in `used`: a customer who has exhausted their allowance can still open a ticket and still gets a full check on their site. `in_good_standing` is false while an account is suspended or unpaid, which pauses metered checks only — the ticket path and previously-purchased results are unaffected. Requires `sites.view`.

Parameters

NameTypeRequiredWhat it is
org_id (query)UuidNoWhich organization this is about. Required when the caller belongs to more than one; a caller in exactly one may omit it.

Response

NameTypeRequiredWhat it is
tierstringYesThe tier this organization falls into.
monthlyintegerYesChecks from the tier
grantedintegerYesExtra checks granted by staff that have not expired.
totalintegerYes`monthly` + `granted`.
usedintegerYesBillable checks used this period. Ticket and staff checks are never counted.
remainingintegerYes
exhaustedbooleanYesThe monthly allowance is spent. ⛔ This does NOT mean checks are refused — see `credit_checks`. Rendering "0 left" on this field alone tells a customer whose credit covers hundre…
credit_checksintegerNoHow many further checks the organization's Zinn® AI credit would cover once the allowance is gone. The allowance is the *included* tier of the one meter; beyond it a check is fu…
exhausted_entirelybooleanNoOut of allowance AND out of credit — the only state in which a self-serve check is actually refused.
in_good_standingbooleanYesFalse while the account is suspended or unpaid. Pauses metered checks only — the ticket path stays free and previously-purchased results stay readable.
period_startstringYes

Errors this endpoint can return

401 · 403 · 422 · 429