viakite
Dashboard

API/Reports/Whether Ask AI can answer, and this month's AI credits

Whether Ask AI can answer, and this month's AI credits

GET/v1/projects/{project}/ai

enabled is false when the server has no Anthropic API key (reason: off). Otherwise reason says why a question would be refused now: credits_spent (the plan's credits and the top-up credits the wallet can pay for are used) or busy (Ask AI reached its own limit this month); it is absent when a question would be answered. Each organization spends its plan's AI credits first (credits_included, starting again at resets_at, the 1st in UTC), then top-up credits paid from its prepaid wallet (top_up_credits is how many more the wallet covers). A typical question takes one to three credits.

Secret keyNeeds analytics.viewus.api.vk.viabio.me

Path parameters

projectstringrequired
The project's id (prj_…).

Responses

Ask AI's state for the project's organization.

enabledbooleanrequired
reasonstring
offcredits_spentbusy
credits_includedintegerrequired
AI credits the organization's plan includes this month.
credits_usedintegerrequired
AI credits the organization used this month, top-ups included.
top_up_creditsintegerrequired
How many more AI credits its wallet can pay for.
resets_atstring · date-timerequired
A time in UTC, ISO 8601.
Example response
1{
2 "enabled": true,
3 "reason": "off",
4 "credits_included": 1,
5 "credits_used": 1,
6 "top_up_credits": 1,
7 "resets_at": "2026-11-21T09:30:00Z"
8}