Get decisions usage
Retrieve usage metrics for answered decision requests. A request that fails or is rejected is not counted. Filter models by the ids GET /v1/models lists; the id in the example is a placeholder, not a model you can call.
Authorizations
Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.
Headers
Optional external end-user identifier forwarded by the API gateway.
Query Parameters
Start time (Unix seconds), inclusive
-9007199254740991 <= x <= 90071992547409911704067200
End time (Unix seconds), exclusive
-9007199254740991 <= x <= 90071992547409911704153600
Width of each time bucket (1m, 1h, 1d), aligned to UTC
1m, 1h, 1d "1d"
Maximum number of buckets per page, 1-1440. Defaults to 60 for 1m, 24 for 1h and 7 for 1d buckets; values above 168 for 1h or 31 for 1d are capped there. When the window holds more buckets, has_more is true and next_page continues
1 <= x <= 144030
Cursor from a previous page's next_page. Resumes at the bucket after that page; keep every other query parameter the same. A cursor issued for another start_time or bucket_width, or that resumes outside [start_time, end_time), is a 400
"WzEsMTcwNDY3MjAwMCwiMWQiLDE3MDQwNjcyMDBd"
Filter by platform user IDs (the same dimension group_by=user_id reports)
Filter by delegated end-user IDs (externalUserId, i.e. X-On-Behalf-Of subs)
Aggregate usage across all organizations (cluster admins only)
Filter by organization IDs (cluster admins only, implies cluster scope)
Group by specified fields
user_id, api_key_id, org_id, model Filter by model names
Response
OK
True when the requested window holds more buckets than this page returned; fetch them with next_page
Cursor for the next page: pass it as page with the same query parameters to continue at the next bucket. Null on the last page
Unix timestamp when these figures were computed. A cached report keeps the time it was computed, so this shows the report's age
-9007199254740991 <= x <= 9007199254740991How long after it occurs usage stays provisional: 86400 (24 hours). Usage older than that is final and no longer changes
-9007199254740991 <= x <= 9007199254740991Unix timestamp (as_of minus settlement_window_seconds) before which usage is final; usage at or after it is provisional
-9007199254740991 <= x <= 9007199254740991True when the whole requested window ends at or before final_through, so every figure in the report is final