GET/meta/usage
List usage
Lists your team's daily usage for a UTC month, ordered by day. Usage updates until Motor creates the month's invoice. Requires a secret key, which can read usage across all keys on your team for services it has permission to use. Invoice totals may differ from usage totals because each invoice line is rounded to the nearest cent.
| Parameter | Location | Description |
|---|---|---|
| month | query | The month in UTC, YYYY-MM: the current month or one of the 24 completed months before it. |
| service_id | query | Filter by service, such as feature_flags. The key must be allowed to use it. |
| meter_id | query | Filter by meter, such as feature_flags.evaluations. |
| mode | query | Filter by mode, such as live. |
| key_id | query | Filter by a key on your team, such as key_BWBeN28Vb7cMEx7Ym8AUzs. |
| limit | query | Maximum number of rows per page: 1 to 200. Defaults to 50. |
| cursor | query | The next_cursor value returned by the previous page. Keep the month and filters the same. |
Responses
200Success.
{
"data": [
{
"day": "2026-10-05",
"service_id": "feature_flags",
"meter_id": "feature_flags.evaluations",
"mode": "live",
"key_id": "key_BWBeN28Vb7cMEx7Ym8AUzs",
"rate_version": null,
"unit": "evaluation requests",
"quantity": 412000,
"unit_price_usd": "0.00003",
"amount_usd": "12.36"
},
{
"day": "2026-10-05",
"service_id": "feature_flags",
"meter_id": "feature_flags.metric_events",
"mode": "live",
"key_id": "key_BWBeN28Vb7cMEx7Ym8AUzs",
"rate_version": null,
"unit": "metric events",
"quantity": 5000,
"unit_price_usd": "0.00003",
"amount_usd": "0.15"
}
],
"next_cursor": null
}401The key is missing, invalid or revoked, or it's a publishable key.
{
"error": {
"code": "unauthorized",
"message": "Use a secret key to read usage. Publishable keys can't read it."
}
}403The team is suspended (account_suspended), or the key cannot access the service specified by service_id (forbidden).
{
"error": {
"code": "forbidden",
"message": "This key can't use search_index, so it can't read its usage. Update the key's permissions on the API keys page."
}
}404key_id is unknown or belongs to another team.
{
"error": {
"code": "not_found",
"message": "The key doesn't exist."
}
}422month is missing, or month, limit or cursor is invalid.
{
"error": {
"code": "invalid_field",
"message": "`month` must be from 2024-10 to 2026-10: the current month and the 24 months before it."
}
}