GET
/
billing
/
usages
/
monthly
Get Monthly Usage Endpoint
curl --request GET \
  --url https://api.contextual.ai/v1/billing/usages/monthly \
  --header 'Authorization: Bearer <token>'
{
  "usages": [
    {
      "date": "2023-12-25",
      "usage_type": "QUERY_REFORMULATION_INPUT_TOKEN",
      "quantity": 123,
      "price": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

year
integer
required
Required range: x >= 2025
month
integer
required
Required range: 1 <= x <= 12
resource_id
string<uuid> | null

Response

Successful Response

Response to GET /billing/usage/monthly request