Skip to main content
GET
cURL
Requires credits:read. Prefer ledger amounts over duration × guessed rates. Filter with type=call_deduction for call usage rows. Pair with credits.usage / call.*.billed webhooks. Each call_deduction row includes (when known):
  • fromNumber / callerNumber - caller (inbound) or callee (outbound)
  • toNumber / phoneNumber - DID that received the call (inbound) or outbound from-number
  • conversationId / callSessionId - Mongo conversation id (joins to GET /api/v1/calls/{id})
  • callId - telephony / dialer id (may be a UUID; still joinable via calls API aliases)
  • durationSeconds, agentId, campaignName, balanceAfter, occurredAt
Historical rows that only stored contactPhone still map that to fromNumber. List responses also join call docs when From/To were missing on the ledger.

Authorizations

Authorization
string
header
required

Paste only your API key (ond_live_… or ond_test_…). Do not type the word Bearer - the playground adds it.

Query Parameters

type
string
Example:

"call_deduction"

page
integer
default:1
limit
integer
default:25
Required range: x <= 100
startedAfter
string<date-time>
startedBefore
string<date-time>

Response

Ledger page

transactions
object[]
pagination
object