widgetType) and time range.fromTimestamp and toTimestamp are optional. If omitted, the last 14 days are used.curl --location 'https://app.highperformr.ai/api/credits/widgets?widgetType=&fromTimestamp=&toTimestamp=&segmentId=' \
--header 'x-api-key: <api-key>'{
"widgetType": "SUMMARY",
"fromTimestamp": "2026-09-01T00:00:00.000Z",
"toTimestamp": "2026-09-07T23:59:59.999Z",
"data": {
"creditsPurchased": 5000,
"purchasedTxnCount": 1,
"creditsConsumed": 320,
"consumedTxnCount": 18,
"recordsBilled": 44,
"dailyTrend": [
{
"date": "2026-09-01",
"creditsPurchased": 0,
"purchasedTxnCount": 0,
"creditsConsumed": 40,
"consumedTxnCount": 4,
"recordsBilled": 12
}
]
}
}