Skip to main content
POST
/
credits
/
getUsageHistory
Get credit usage history
curl --request POST \
  --url http://api.superwize.ai/api/credits/getUsageHistory \
  --header 'Content-Type: application/json' \
  --data '
{
  "limit": 20,
  "cursor": "obj_01JHKZ0PV2WX123456780"
}
'
{
  "items": [
    {
      "id": "obj_01JHKZ0PV2WX123456789",
      "operation": "CHAT",
      "amount": 1,
      "createdAt": "2026-01-01T00:00:00.000Z"
    }
  ],
  "nextCursor": "obj_01JHKZ0PV2WX123456781"
}

Body

application/json
limit
number
default:20
Required range: 1 <= x <= 100
cursor
string

Response

Credit usage history returned.

items
object[]
required
nextCursor
string | null
required