API Reference
Log In
API Reference

Get cost metrics by trace type

Returns a paginated list of cost metrics per trace type

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

ID of the team that owns this data.

string
enum

Predefined time window to aggregate results. Defaults to THIRTY_DAYS.

string

Optional filter for a specific trace type. Omit to include all trace types.

string
enum

Optional operation type filter. Use to filter by specific operation type (e.g., CHAT, GENERATE, AUDIO, VIDEO, IMAGE). Omit to include all operation types.

string

Optional environment filter (e.g., production, staging). Omit to include all environments.

integer
≥ 0
Defaults to 0

Zero-based page index (0..N)

integer
≥ 1
Defaults to 20

The size of the page to be returned

sort
array of strings

Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.

sort
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*