Meters
Get meter
Get a meter by ID or slug.
get/api/v1/meters/{meterIdOrSlug}
Request
- Base URLhttps://openmeter.cloud (the document declares no server; this is the origin it was published from)
- Auth
- HTTP bearer
- or API key in cookie __session
Path parameters
meterIdOrSlugstring required
Response
The request has succeeded.
Example response
{
"aggregation": "SUM",
"createdAt": "2024-01-01T01:01:01.001Z",
"description": "AI Token Usage",
"eventType": "prompt",
"groupBy": {
"model": "$.model",
"type": "$.type"
},
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"name": "Tokens Total",
"slug": "tokens_total",
"updatedAt": "2024-01-01T01:01:01.001Z",
"valueProperty": "$.tokens"
}Changes
No recorded changes to this operation across all 2 revisions of this API.