Query Parameters
Even sum aggregations window
"MINUTE"
Start date in UTC, below minute precision will be ignored
"2025-01-01T00:00"
End date in UTC, below minute precision will be ignored, should greater than Start date
"2026-01-01T00:00"
Source of the meter, for now can be only chat-engine, this can be helpfully if same metering system is used by multiple sources
"chat-engine"
User Id, can have multiple agents attached to it
"user-123"
Agent id, can have multiple sessions attached to it
"agent-123"
Session id, can have multiple message attached to it
"session-123"
Run id, a run represent a session send+reply (input output) message, can have multiple generations attached to it, with inputs and outputs
"run-123"
Model name, example: gpt-4o-mini, gpt-4o ....
"gpt-4o"
Model provider, example: openai, anthropic ....
"openai"
Type of the unit
"input_tokens"
Unit cost of the meter, example: 0.015_per_million
"0.015_per_million"
Organization id
"org-123"
The Id of the credential used to create the usage
"openai_key_123"
The external customer ID for the meter, this can be a phone number, whatsapp number or any external customer id
"1234567890"
Response
Return modal usage meters.
