Billing

Balance, account settings, and transaction history.

Check Balance

GET /v1/billing/accounts/balance
X-API-Key: dist_YOUR_KEY
{
  "balance_cents": 4523,
  "depleted": false
}

Get Account

GET /v1/billing/accounts
X-API-Key: dist_YOUR_KEY

Returns credit balance, auto-reload settings, and payment method status.

List Transactions

GET /v1/billing/accounts/transactions
X-API-Key: dist_YOUR_KEY
{
  "transactions": [
    {
      "id": "tx_abc",
      "amount_cents": -42,
      "description": "Campaign: Q2 Sales Outreach",
      "type": "deduction",
      "created_at": "2026-04-01T12:00:00Z"
    },
    {
      "id": "tx_def",
      "amount_cents": 5000,
      "description": "Credit purchase",
      "type": "credit",
      "created_at": "2026-03-28T00:00:00Z"
    }
  ],
  "has_more": false
}

TypeScript Client

const balance = await client.getBillingBalance();
const account = await client.getBillingAccount();
const { transactions } = await client.listBillingTransactions();