Billing

Get the wallet

The prepaid balance in full: ledger, pending mention charges and the effective balance the stop rule reads, the daily burn and the days it buys, how many keywords run and how many the wallet paused, what a day costs and what a resume needs, the welcome credit, the newest top-up, the top-up bounds and the auto-recharge settings. `GET /v1/usage` is the short form.

GET
/v1/billing/wallet
AuthorizationBearer <token>

API key minted via POST /v1/api-keys (format mk_live_...)

In: header

Response Body

application/json

application/json

curl -X GET "https://api.mentio.dev/v1/billing/wallet"
{
  "balanceCents": 0,
  "pendingCents": 0,
  "effectiveBalanceCents": 0,
  "burnPerDayCents": 0,
  "daysLeft": 0,
  "stopped": true,
  "lowBalance": true,
  "activeKeywords": 0,
  "autoMutedKeywords": 0,
  "nextDayCents": 0,
  "resumeCostCents": 0,
  "signupCredit": {
    "amountCents": 0,
    "grantedAt": "string"
  },
  "lastTopUpAt": "string",
  "billingConfigured": true,
  "minTopUpCents": 0,
  "maxTopUpCents": 0,
  "defaultTopUpCents": 0,
  "currency": "USD",
  "autoRecharge": {
    "available": true,
    "enabled": true,
    "thresholdCents": 0,
    "amountCents": 0,
    "lastRunAt": "string",
    "lastError": "string"
  }
}
{
  "error": {
    "code": "unauthorized",
    "message": "string",
    "requestId": "string",
    "retryAfterSeconds": 0
  }
}