List credit spends
list_credit_usageRetrieve and page through credit spend records, newest first, filtered by action, product, or customer to audit usage.
Instructions
List credit spends.
Newest first; pass next_cursor back as cursor for the next page.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_credit_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many objects to return, 1–100. Default 10. | |
| action | No | Your label for what the credits paid for (`chat`, `image.hd`, `api/search`). Shows in your dashboard by action. | |
| cursor | No | `next_cursor` from the previous page. | |
| product | No | A product id, `prod_…`. | |
| customer | No | A customer id, `cus_…`. |