Skip to main content
GET
/
billing
/
credit-history
List credit history
curl --request GET \
  --url https://api.ledgerbeam.com/v1/billing/credit-history \
  --header 'API-KEY: <api-key>'
{
  "next_cursor": "XjdHaksD",
  "data": [
    {
      "date": "2024-01-15",
      "credits_used": 150,
      "credits_remaining": 850,
      "total_credits": 1000
    }
  ],
  "summary": {
    "total_credits_used": 5000,
    "current_credits": 500,
    "period_start": "2024-01-01",
    "period_end": "2024-01-31"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.ledgerbeam.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Retrieve credit usage history. This endpoint returns detailed information about your credit usage over time, including daily usage, remaining credits, and period summaries.

Authorizations

API-KEY
string
header
required

API key for authentication

Response

200 - application/json

Credit history retrieved successfully

next_cursor
string

Pagination cursor for next page

Example:

"XjdHaksD"

data
object[]

List of credit usage records

summary
object