Usage
Minutes and usage.
/v1/usageUsage & billing for the current period
Session time for the current calendar month (UTC) or the from/to range, with the plan and the minutes the account holds. An unlimited account has no minute counts (null).
Query parameters
fromstringStart of the period (ISO date or date-time). Default: the start of this calendar month (UTC).
tostringEnd of the period (exclusive). Default: the start of next month (UTC).
Returns
200 Usage for the period. data is Usage.
Fields of data
planobjectrequiredkeystringrequiredfree, starter, plus, pro, business or enterprise.
namestringrequiredintervalstringrequiredmonth or year.
unlimitedbooleanrequiredAn unlimited account has no minute counts (the minute fields are null).
includedMinutesinteger | nullrequiredThe plan's minutes this cycle.
minutesUsednumberrequiredSession time in the period, in minutes.
remainingMinutesinteger | nullrequiredEvery minute the account can still spend: plan, minute packs and bonus.
cycleobjectrequiredstartstring (date-time)requiredISO 8601 UTC timestamp.
endstring (date-time)requiredISO 8601 UTC timestamp.
minutesobject | nullrequiredplanIncludedintegerrequiredplanUsedintegerrequiredplanLeftintegerrequiredpurchasedLeftintegerrequiredMinute packs; they never expire.
bonusLeftintegerrequiredtotalLeftintegerrequired
periodobjectrequiredstartstring (date-time)requiredISO 8601 UTC timestamp.
endstring (date-time)requiredISO 8601 UTC timestamp.
sessionCountintegerrequiredbySourceobjectrequiredportalnumberrequiredapinumberrequired
byDayobject[]requireddatestringrequiredYYYY-MM-DD (UTC).
minutesnumberrequiredsessionsintegerrequired
byPersonaobject[]requiredpersonaIdstringrequiredPersona id (
pa_…).pattern `^pa_.*`
personaNamestringrequiredminutesnumberrequiredsessionsintegerrequired
Errors
invalid_requestunauthorizedforbiddenupgrade_requiredrate_limitedserver_error
Request
curl "https://app.zentiqai.com/v1/usage" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.getUsage();import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.get_usage()Example answer
{
"data": {
"plan": {
"key": "pro",
"name": "Zoe",
"interval": "month"
},
"unlimited": true,
"includedMinutes": 1,
"minutesUsed": 1,
"remainingMinutes": 1,
"cycle": {
"start": "2026-09-25T12:00:00.000Z",
"end": "2026-09-25T12:00:00.000Z"
}
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}