Skip to main content
POST
Report voice minutes

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
sessionId
string
required

The sessionId returned by /api/ai/rtProxy/rtSession for this call

voiceSeconds
number

The call's connected seconds so far (cumulative)

Response

The report was read. charged is false when there was nothing new to bill, the sessionId is not one of this user's calls, the Digital Twin the call was started in no longer exists, or the charge could not be made.

ok
boolean
charged
boolean

True only when this report's minutes were counted against the credits that pay the call (an account on a monthly plan is counted, not debited)

credits
number

The balance that pays this call's credits, after the report (the Digital Twin's shared credits when it pools them, otherwise the caller's own)

institutioncredits
number

The Digital Twin's shared credits after the report (present when they paid)

creditsUsed
number

The credits that balance has used in total, after the report (present when the report was charged)

creditNotice
object

Present on a personal account's turn (no current Digital Twin, no monthly plan) when its credits are running low or out, computed from the balance after this turn's debit. Also saved on the history record. low: the balance is at or under the threshold and above zero. grace: the balance is at or under zero and the next message in this conversation will still be answered. out: the next message will be refused until credits are added.