Skip to main content
GET
/
billing
/
usage
Get usage metrics for current user
curl --request GET \
  --url https://api.mnemom.ai/v1/billing/usage \
  --header 'Authorization: Bearer <token>'
{
  "daily": [
    {
      "rollup_date": "2023-12-25",
      "check_count": 123,
      "tokens_in": 123,
      "tokens_out": 123
    }
  ],
  "summary": {
    "checks_used": 123,
    "checks_included": 123,
    "overage": 123,
    "estimated_overage_cost": 123,
    "period_start": "2023-11-07T05:31:56Z",
    "period_end": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Query Parameters

days
integer
default:30
Required range: 1 <= x <= 90

Response

Usage data

daily
object[]
summary
object