ai

GET /v1/ai/summary

The organization's AI position — balance, funding route, usage.

Dukkan ai wuraren ƙarshe

Dukan takardun mai haɓakawa

Tabbatar da Asali

Aika maɓallin API azaman alamar ɗauka (bearer token). Dole ne maɓallin ya kasance yana da izinin sites.view; idan babu shi, za a ƙi amfani da maɓallin tare da lambar 403, ba 404 ba.

Inda ID ɗin kungiyar ku ke zuwa

Wannan mahadar ta na daukar org_id a matsayin sigar tambaya. Bar shi kuma kiran zai shafi daukacin rukunin haya naka; aika shi don takaita kiran zuwa kungiya daya tak.

Ana samun lambar kungiyar ku a kan shafin maɓallan API a cikin madanninku, kusa da maɓallin kansa. Shi ne lambar da ta dace a kowane kiran da kuka yi.

Gwada

May gurbin komai da ke cikin kusurwa da ƙimar ka, kuma may gurbin maballi da maballi daga allon sarrafa ka.

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

An shiga? Na'urar sarrafa API da ke cikin sashin kulawarka tana cika ainihin lambar ƙungiyarka da maɓallinka naka, sannan tana gudanar da buƙatar a kan ainihin API don haka zaka iya ganin amsar gaske. Buɗe wannan tashar a cikin na'urar kula da API

Bayani

Everything the AI page needs in one request: the Zinn® AI credit balance, which funding route the next call would take, the org's own provider keys, 30 days of metered usage and how many agent proposals are waiting. funding_route is derived from the same function the next call will use, never re-implemented — a screen that computes its own answer eventually tells a customer they are on their own key while we bill them. Requires sites.view.

Sigogi

SunaNau'iAna buƙataAbin da yake
org_id (query)UuidA'aWhich organization this is about. Required when the caller belongs to more than one; a caller in exactly one may omit it. Omitting it in a multi-org account is a 422 that says…

Martani

SunaNau'iAna buƙataAbin da yake
credit_balance_microsintegerEh
credit_currencystringEhThe ledger's denomination. USD, with display converted per request off the cached FX rates — the same pattern listExtras uses, and for the same reason: every provider quotes us…
funding_routestring<byo, credits, included, none, mixed>EhWhich route the NEXT call would take, for the organization as a whole. none means there is no way to fund one. mixed is the honest answer when the providers disagree, and it…
funding_routesAiProviderFunding[]EhWho pays for the next call to each provider, and whether its key works.
included_daily_microsintegerEh
included_remaining_microsintegerEh
credentialsAiCredential[]Eh
usage_30dAiUsageLine[]Eh
open_proposalsintegerEh
site_builderSiteBuilderTrialEhThe one-time free allowance for the AI site builder. One grant per organization, for ever — not monthly, and not per site. granted is true because the credit was actually…

Kuskuren da wannan matsaya za ta iya maido wa

401 · 403 · 422 · 429