Piloterr

Usage

Monitor your API quota, extra credits, and account status in real time.

The Usage endpoint returns your remaining API quota, extra credits, rate limits, and API key details at any time. It does not consume any credits.

Note: the subscription object reports your combined API quota (subscription allowance + remaining top-ups), not the subscription portion alone. Use the dashboard for a subscription vs top-up split.

This endpoint is free. It never consumes any credits.

Request

curl "https://api.piloterr.com/v2/usage" \
  -H "x-api-key: YOUR_API_KEY"

Response Fields

FieldTypeDescription
remainingintegerTotal credits available now (API quota + extra credits)
total_usedintegerTotal credits consumed so far (API quota + extra credits; top-up usage persists across billing periods)
renewal_datestringDate when the subscription renews (ISO 8601)
period.startstringStart of the current billing period
period.endstringEnd of the current billing period
subscription.usedintegerAPI calls used against your combined API quota
subscription.totalintegerCombined API quota cap (subscription + top-ups)
subscription.remainingintegerRemaining combined API quota (subscription remainder + unused top-ups)
subscription.percent_usednumberPercentage of API quota consumed
credits.givenintegerExtra credits granted to your account (separate ledger)
credits.consumedintegerExtra credits consumed
credits.remainingintegerExtra credits remaining
rate_limit.per_minuteinteger | nullRequests per minute limit (null = unlimited)
rate_limit.per_secondinteger | nullRequests per second limit (null = unlimited)
account.namestringName of the account
account.slugstringAccount identifier slug
api_key.aliasstringFriendly name of the API key
api_key.activebooleanWhether the key is currently active
api_key.categorystringKey category (e.g. development, production)
api_key.expiresstring | nullExpiry date of the key (null = never expires)
api_key.quotasobjectCustom per-key quotas: total, daily, weekly, monthly

Example Response

{
  "remaining": 450,
  "total_used": 1550,
  "renewal_date": "2026-04-25",
  "period": {
    "start": "2026-03-25",
    "end": "2026-04-25"
  },
  "subscription": {
    "used": 1550,
    "total": 2000,
    "remaining": 450,
    "percent_used": 77
  },
  "credits": {
    "given": 0,
    "consumed": 0,
    "remaining": 0,
    "percent_used": 0
  },
  "rate_limit": {
    "per_minute": null,
    "per_second": null
  },
  "account": {
    "name": "Acme Corp",
    "slug": "acme-corp"
  },
  "api_key": {
    "alias": "production",
    "active": true,
    "category": "production",
    "expires": null,
    "quotas": {
      "total": null,
      "daily": null,
      "weekly": null,
      "monthly": null
    }
  }
}

On this page