OpenMeter Features
Query feature cost
Query the cost of a feature.
post/openmeter/features/{featureId}/cost/query
Path parameters
featureIdstring required
ULID (Universally Unique Lexicographically Sortable Identifier).
Example:01G65Z755AFWAKHE12NY0CQ9FH
Request body
Example request
{
"from": "2023-01-01T00:00:00Z",
"to": "2023-01-02T00:00:00Z",
"granularity": "P1D",
"time_zone": "UTC"
}Response
The request has succeeded.
Example response
{
"from": "2023-01-01T01:01:01.001Z",
"to": "2023-01-01T01:01:01.001Z",
"data": [
{
"currency": "USD",
"from": "2023-01-01T01:01:01.001Z",
"to": "2023-01-01T01:01:01.001Z"
}
]
}