list_credit_transactions
Workspace Analytics & Billing: the credit ledger of ONE Enterprise workspace, one row per credit movement, oldest first, by the day it was posted (Asia/Ho_Chi_Minh). Needs a workspace reporting key (wdr_report_…, made by the workspace Owner) for that workspace, or your own sign-in as its Owner, Admin or Member. A Member sees only the movements of their own wallet. Each row of data: transaction_id (stable), posted_at (ISO 8601, +07:00, to the second), kind (topup = a card purchase, apero_budget = a budget from Wandura, allocate = pool → a member wallet, reclaim = a wallet → the pool, spend = a run charged (held or settled), refund = credits given back, adjust = a correction by Wandura), credits (signed: + adds credits to the pool or wallet, − takes them away), wallet_user_id + wallet_email (the member wallet moved; null = the workspace pool), actor_user_id + actor_email (who did it; null = the system), job_id, ref (the movement's own reference), refund_of_ref (refunds only: the ref of the spend it reverses), spend_state (spend rows only: held = the run is still going and its credits may come back, settled, or refunded = all of it given back; as it stands now, so an updated_since sync keeps the state it first saw) and held_credits (spend rows only: credits still held), reason. Net credits used = −Σ credits of spend and refund rows (matches the Usage page); allocate / reclaim only move credits inside the workspace and are never cost. Range: from (first day, included) and to (the day after the last, excluded), YYYY-MM-DD in Asia/Ho_Chi_Minh, at most 366 days; default the last 30 days including today. Paging: up to limit rows (1–1,000, default 1,000); when meta.next_cursor is not null pass it as cursor (with the same range) for the next page. Sync: updated_since = the last posted_at you stored returns only newer rows, never one you already have (ledger rows never change). Free; at most 60 calls a minute per key or person. CSV: GET /api/v1/workspaces/{workspace_id}/reports/list_credit_transactions?format=csv (next page cursor in the X-Next-Cursor header).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_id": "<workspace_id>"
},
"name": "list_credit_transactions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The day after the last, excluded (YYYY-MM-DD, Asia/Ho_Chi_Minh). Default: tomorrow. At most 366 days after `from`. | |
| from | No | First day, included (YYYY-MM-DD, Asia/Ho_Chi_Minh). Default: 30 days before `to`. | |
| limit | No | Rows per page. | |
| cursor | No | meta.next_cursor of the previous page, unchanged. | |
| workspace_id | Yes | The workspace: the one the reporting key belongs to, or one you are a member of. | |
| updated_since | No | Only rows posted after this time (to the second), e.g. the last posted_at you stored. |