---
title: "Export the filtered wallet ledger as CSV"
method: GET
path: "/v1/dashboard/billing-history/export"
---

# Export the filtered wallet ledger as CSV

`GET /v1/dashboard/billing-history/export`

## Request

- Base URL: `https://api.skysay.ai`
- URL: `https://api.skysay.ai/v1/dashboard/billing-history/export`
- Auth: none declared

Returns exactly the entries the Billing history ledger pages through for the same `type`, `from` and `to` (both required, YYYY-MM-DD, UTC, inclusive), in the same order, as `text/csv`. Columns: created_at, id, type, category, currency, amount (decimal), amount_minor, available_delta_minor, reserved_delta_minor, spent_delta_minor, promotional_spent_delta_minor, reference, call_id, sms_conversation_id, note. Integer minor-unit columns are the exact figures; amount_minor has the aggregate's meaning, available_delta_minor sums to the change in available funds and spent_delta_minor to spend. A file carries at most 10,000 entries: a larger selection is refused with 400 and a message asking for a shorter range, never truncated.

## Query parameters

- `type` string
- `from` string, date, required
- `to` string, date, required

## Response `200`

Wallet ledger CSV

## Other responses

- `400`: Missing or invalid range, or more than 10,000 matching entries

---

[API](https://skmtc.dev/skysay/apis/skysay-api.md) · [All operations](https://skmtc.dev/skysay/apis/skysay-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skysay/apis/skysay-api/revisions/95b8c66f99aa?raw)
