Skip to main content
GET
Get the minutes ledger

Authorizations

Authorization
string
header
required

An API key from Settings → API keys, sent as Authorization: Bearer kb_live_…. A workspace key starts kb_; a personal key starts kbp_ and acts as its owner.

Headers

Kallabot-Version
enum<string>

The API version to answer as, a date (YYYY-MM-DD). Leave it out for the current version (2026-11-07). An unknown version is refused with 400 unsupported_api_version.

Available options:
2026-11-07
Example:

"2026-11-07"

Query Parameters

from
string<date-time> | null

ISO 8601. Default: the period's start.

to
string<date-time> | null

ISO 8601. Default: now.

limit
integer | null
Required range: 1 <= x <= 100
cursor
string | null
Maximum string length: 512
include_usage
boolean
default:false

Also list each settled call and chat reply.

order
enum<string>
default:asc

desc: newest rows first.

Available options:
asc,
desc

Response

Successful Response

data
LedgerRowOut · object[]
required

Grants and moves in the window, oldest first (newest first with order=desc).

next_cursor
string | null
required
has_more
boolean
required
from
string
required
to
string
required
window
enum<string>
required

period: the current billing period so far; last_30_days: no plan; custom: from/to given.

Available options:
period,
last_30_days,
custom
opening_balance
number
required

The shared pool at from, live calls' holds left out.

closing_balance
number
required

At to: opening + Σ rows − used_minutes − chat replies (as minutes). In money: closing_amount = opening_amount + Σ credit − calls_amount − chats_amount.

held_minutes
number
required

Held by calls still live at to.

available_at_close
number
required

closing_balance − held_minutes: what could be spent at to.

granted_minutes
number
required
taken_minutes
number
required

Refunds, adjustments and moves out of the pool, as a positive number.

used_minutes
number
required

Settled call minutes in the window, all agents.

usage
AgentUsageOut · object[]
required

Minutes used in the window by agent, most first.

currency
string | null

The currency of the *_amount fields.

opening_amount
integer | null

The balance at from, holds left out, minor units.

closing_amount
integer | null
held_amount
integer | null
available_amount_at_close
integer | null
granted_amount
integer | null
taken_amount
integer | null
calls_amount
integer | null

Settled calls in the window.

chats_amount
integer | null

Chat replies in the window.

chat_replies
integer | null
by_channel
ChannelUsageOut · object[]

Usage in the window by channel.