Skip to content
vocapable.Docs

AI-agent minutes in the current billing period, whole and per agent

GET
/v1/usage/ai-minutes
curl --request GET \
--url https://api.vocapable.com/v1/usage/ai-minutes \
--header 'Authorization: Bearer <token>'

The billable AI seconds of the subscription’s current Stripe billing period.

The seconds are exactly the ones the billing_period_estimate AI-minutes line prices - invoice-eligible telephony_minutes, inbound receptionist calls included and separately prepaid managed test calls excluded - split into what the rating engine has already rated and the tail it has not reached yet, and attributed to the agent whose call produced each row. A company with no subscription has no billing period: every figure is null, never zero.

Successful Response

Media typeapplication/json
AiMinutesUsage

The AI-agent minutes in the current billing period, whole and per agent.

The same seconds the estimate’s “AI minutes” line prices: telephony_minutes rows eligible for a Vocapable invoice (inbound receptionist calls included; separately prepaid managed test calls excluded). They are AI-session seconds, billed per second after a 30-second minimum per call - never the carrier’s own minutes, which a BYO tenant’s carrier invoices directly.

rated_seconds are what the rating engine has already priced this period and unrated_seconds the tail it has not reached yet (normally one tick deep); both are null while the rating engine holds no state for the period. agents attributes each row to the agent whose call produced it; unattributed_seconds is what no call or campaign links to an agent, so the two always sum to billable_seconds.

object
state
required
State
string
Allowed values: billing_period no_billing_period
period_start
Any of:
string format: date-time
period_end
Any of:
string format: date-time
billable_seconds
Any of:
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
billable_call_count
Any of:
integer
rated_seconds
Any of:
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
unrated_seconds
Any of:
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
agents
Agents
Array<object>
AgentAiMinutes

One agent’s share of the period’s billable AI seconds.

object
agent_id
required
Agent Id
string
billable_seconds
required
Billable Seconds
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
unattributed_seconds
Any of:
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
included_seconds
Any of:
integer
consumed_seconds
Any of:
integer
reserved_seconds
Any of:
integer
remaining_seconds
Any of:
integer
as_of
required
As Of
string format: date-time
Example
{
"state": "billing_period"
}