API Reference
Log In
API Reference

List all AI metrics across all modalities

        Returns a paginated list of AI metrics across all types (completion, audio, video, image).
        Only common fields are returned. Use the metricType field to identify the specific type.
        For full type-specific details, use the dedicated endpoints:
        - /v2/api/sources/metrics/ai/completions
        - /v2/api/sources/metrics/ai/audio
        - /v2/api/sources/metrics/ai/video
        - /v2/api/sources/metrics/ai/images
    
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

Unique identifier of the team (organization). Format: Revenium hashid (URL-safe encoded string).

string

Searches trace ID and transaction ID by exact match first; when no ID matches, falls back to partial match across agent, model, provider, error reason and subscriber email.

string
enum

Filter by metric type (modality). If not specified, returns all types.

Allowed:
string

Filter start date/time in ISO 8601 format.

string

Filter end date/time in ISO 8601 format.

int64
0 to 300000

Minimum request duration (in milliseconds).

int64
0 to 300000

Maximum request duration (in milliseconds).

number
0 to 999999.99

Minimum total cost ($).

number
0 to 999999.99

Maximum total cost ($).

string
length between 1 and 255

Exact transaction ID match.

string
length between 1 and 255

Exact trace ID match.

string
length between 1 and 255

Filter by trace type. Use 'unknown' for metrics without traceType.

string
length between 1 and 255

Filter by consuming organization name.

string
length between 1 and 255

Filter by subscriber ID.

string
length between 1 and 255

Filter by subscriber email.

string
length between 1 and 255

Filter by subscription ID.

string
length between 1 and 255

Filter by product ID.

string
length between 1 and 255

Filter by agent name.

string
length between 1 and 255

Filter by AI provider.

string
length between 1 and 255

Filter by AI model.

string
length between 1 and 255

Filter by model source.

string
length between 1 and 255

Filter by error reason.

string
enum

Filter by operation type.

string
enum
length between 1 and 50

Filter by deployment environment.

Allowed:
boolean

Filter by whether billing was skipped (true = free tier/skipped, false = billed).

boolean

Whether to include coding assistant metrics (e.g. Claude Code, Gemini CLI). When false (default), coding assistant records are excluded from results. Non-completion metrics (IMAGE, AUDIO, VIDEO) are unaffected by this filter.

includeCodingAssistantProviders
array of strings

Server-side coding assistant provider pricing policy. Accepted values: ClaudeCode, ClaudeCowork, CursorIde, GeminiCli, CodexCli, GithubCopilot. Providers in this list are treated as API-rate real spend and included on real-cost surfaces. An empty or omitted list treats coding assistant providers as subscription or seat-based usage and excludes them from real-cost defaults.

includeCodingAssistantProviders
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
Defaults to requestTime,DESC

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
application/hal+json
*/*