Skip to main content
GET
/
v1
/
usage
Query usage rollups (API key)
curl --request GET \
  --url https://api.monigo.co/v1/usage \
  --header 'Authorization: <api-key>'
{
  "count": 123,
  "rollups": [
    {
      "aggregation": "<string>",
      "created_at": "<string>",
      "customer_id": "<string>",
      "event_count": 123,
      "id": "<string>",
      "is_test": true,
      "last_event_at": "<string>",
      "metric_id": "<string>",
      "org_id": "<string>",
      "period_end": "<string>",
      "period_start": "<string>",
      "updated_at": "<string>",
      "value": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

API key with Bearer prefix (for programmatic/server-to-server access), format: Bearer {api_key}

Query Parameters

customer_id
string

Filter by customer ID

metric_id
string

Filter by metric ID (UUID)

from
string

Period start lower bound (RFC3339). Defaults to start of current billing period.

to
string

Period start upper bound, exclusive (RFC3339). Defaults to end of current billing period.

Response

OK

count
integer
rollups
object[]