Get AI credit usage breakdown.
Changed onReturns AI credit consumption for the project, broken down by end user and feature type. Filterable by date range, end user, and feature type. Usage is updated near real time and grouped by the UTC date when the AI activity occurred. Recent activity may take a short time to appear. Defaults to the current billing period. Only credit counts are returned; token counts, model names, and costs are never exposed. Per-end-user attribution requires the partner to pass endUserId on editor initialization.
Request
- Base URL: https://api.unlayer.com
- URL: https://api.unlayer.com/v3/projects/{id}/ai-credits/usage
- Auth: one of:
- HTTP bearer
- HTTP bearer
Path parameters
The resource ID
Query parameters
Start date (inclusive), YYYY-MM-DD.
End date (inclusive), YYYY-MM-DD.
Filter to a single end user id.
Filter to a single feature type.
Max breakdown rows to return (1-1000).
Number of breakdown rows to skip (pagination).
Field the breakdown is ordered by. Defaults to credits.
Sort direction. Defaults to desc (highest credits first).
Response
Default Response
Changes
- info
the response property
became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
became required for the status - info
the response property
became required for the status
- info