Overview
The Credit Consumption Aggregation endpoint provides detailed analytics on credit usage across your account. Query consumption data by time periods (hourly, daily, monthly) or by API endpoint to understand usage patterns and optimize your credit allocation.Authentication
Include your account API key in the request header:Request Body
Start date and time for the aggregation period (ISO 8601 format)Example:
"2025-08-23T00:00:00Z"End date and time for the aggregation period (ISO 8601 format)Example:
"2025-08-24T00:00:00Z"Time resolution for aggregating credit dataAllowed values:
hour | day | monthDate range limits:hour: Maximum 7 daysday: Maximum 60 daysmonth: Maximum 2 years
Timezone for the aggregation (default: UTC)Example:
"America/New_York"Response
Returns a JSON object containing aggregated credit consumption data:Metadata about the API response
Start date of the aggregation period
End date of the aggregation period
Time resolution used for aggregation
Timezone applied to the aggregation
Total credits consumed during the specified period
Array of aggregated credit consumption data points
Examples
Error Responses
Use Cases
Monitoring Credit Usage Patterns Track how your credit consumption varies throughout the day, week, or month to identify peak usage times and optimize your API call scheduling. Budget Planning Use monthly aggregations to understand long-term trends and plan your credit allocation for upcoming periods. Anomaly Detection Monitor hourly or daily consumption to quickly identify unexpected spikes in usage that may indicate issues or opportunities for optimization. Reporting and Analytics Generate detailed consumption reports for internal stakeholders or integrate with your own analytics dashboards for comprehensive visibility.Authorizations
Body
application/json
ISO 8601 datetime string for start date
ISO 8601 datetime string for end date
Aggregation mode
Available options:
timely, endpoints Aggregation resolution (required for timely mode, optional for endpoints mode)
Available options:
hour, day, month Timezone for aggregation, defaults to UTC
Response
Successful Response
This is base response model for all responses in partner service.
ISO 8601 datetime string for start date
ISO 8601 datetime string for end date
Aggregation mode
Timezone used for aggregation
Total credits consumed in the period
Array of aggregation data points
Aggregation resolution (not applicable for endpoints mode)
Available options:
hour, day, month