# Credit ledger `GET /api/agent-hub/credits/ledger` (operationId: `getCreditsLedger`, group: Credits) Every AI action this cycle with its feature, tokens and the credits it cost, newest first. One credit is 5,000 tokens. Part of the full API, which is included in the Scale plan. Any authenticated caller in a workspace with the AI agent enabled. **Parameters** | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `limit` | query | integer | no | Page size, 1 to 200. Default 50. Default 50. | | `offset` | query | integer | no | Rows to skip. Default 0. | | `feature` | query | string | no | Only this feature key. | | `channel` | query | string | no | Only this channel: whatsapp, website, workflows, marketing or internal. | **Response 200**: Ledger rows. Example: ```json { "events": [ { "id": 88123, "created_at": "2026-10-02T09:14:07.000Z", "feature": "chat_reply", "label": "AI chat reply", "chat_id": "919876543210", "detail": null, "input_tokens": 3200, "cached_tokens": 2600, "output_tokens": 180, "audio_seconds": 0, "credits": 0.29 } ], "total": 1, "limit": 50, "offset": 0 } ``` Part of the InboxWA API reference: https://inboxwa.online/docs/api . Full reference as one document: https://inboxwa.online/docs/api.md . OpenAPI: https://inboxwa.online/openapi.json