Piloterr

Usage

Monitor your API credit consumption and account status in real time.

The Usage endpoint lets you check your remaining credits, subscription quota, rate limits, and API key details at any time. It does not consume any credits.

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
remainingintegerCredits available right now
total_usedintegerCredits consumed in the current billing period
renewal_datestringDate when the subscription renews (ISO 8601)
period.startstringStart of the current billing period
period.endstringEnd of the current billing period
subscription.usedintegerSubscription calls used
subscription.totalintegerSubscription call quota
subscription.remainingintegerSubscription calls remaining
subscription.percent_usednumberPercentage of subscription quota consumed
credits.givenintegerBonus credits added to your account
credits.consumedintegerBonus credits consumed
credits.remainingintegerBonus 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