Credit history
Lists every balance change in reverse chronological order. Each charge entry references its corresponding query_id in ref_id.
GEThttps://geo-api.geoeval.com/v1/credits/transactions
Requires an API key in the Authorization header. Try it below
Query parameters
limitintegeroptionalResults per page. Default 50, max 200.
beforestringoptionalReturn items older than this ID; pass next from the previous page.
Example request
curl "https://geo-api.geoeval.com/v1/credits/transactions?limit=20" \ -H "Authorization: Bearer $GEOEVAL_API_KEY"const response = await fetch(`https://geo-api.geoeval.com/v1/credits/transactions?limit=20`, { headers: { Authorization: `Bearer ${process.env.GEOEVAL_API_KEY}`, },});const data = (await response.json()) as Record<string, unknown>;if (!response.ok) throw new Error(`${data.code}: ${data.message}`);console.log(data);import os
import requests
response = requests.get( "https://geo-api.geoeval.com/v1/credits/transactions?limit=20", headers={ "Authorization": f"Bearer {os.environ['GEOEVAL_API_KEY']}", }, timeout=30,)response.raise_for_status()print(response.json())Response 200
transactionsobject[]Balance ledger entries, newest first.
Fields of transactions
idstringTransaction ID.
kindstringEntry type: topup (credit purchase), charge (query billing), or adjust (support adjustment).
amountnumberSigned credit delta.
balance_afternumberBalance after this transaction.
ref_idstring | nullquery_id for charge, top-up ID for topup, or null for adjust.
notestringNote on an adjustment; empty otherwise.
created_atinteger (ms)Transaction timestamp.
nextstring | nullCursor for the next page; pass as the before parameter. null on the last page.
Example response
{ "transactions": [ { "id": "01a22525-1a2b-7c3d-8e4f-5a6b7c8d9e0f", "kind": "charge", "amount": -3, "balance_after": 97, "ref_id": "01a22524-9c1e-7a3b-8f21-6b0d4c9e1a27", "note": "", "created_at": 1798000095000 } ], "next": null}Errors
All endpoints may also return 400, 401, 403, or 500. See Errors.