Account

Retrieve the daily usage of an API key

Retrieve the daily usage of an API key over the last days days (7, 30 or 90; default 30).

  • daily lists requests, successes, 4xx, 429 and 5xx per day, oldest first; total sums them.
  • last_used_at/last_used_ip are null if never used. Requires account:read.
  • Unknown key returns 404 api_key_not_found; other days returns 422.
get/accounts/{account}/api-keys/{api_key}/usage

Request

  • Base URL: https://api.factuarea.com/v1
  • URL: https://api.factuarea.com/v1/accounts/{account}/api-keys/{api_key}/usage
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Path parameters

accountstring uuid required

Public identifier (UUID v7) of your account. Get it from GET /v1/me (data.account.id).

api_keystring uuid required

Public identifier (UUID v7) of the API key.

Query parameters

days7 | 30 | 90

Number of days of the series, ending today: 7, 30 or 90 (default 30).

Headers

Factuarea-Versionstring date
Example:2026-06-01

Pin the API version (YYYY-MM-DD, Stripe-style date versioning) for this request; omit to use the key's pinned version, or the latest if none. Unsupported version → 400 unsupported_api_version; malformed → 400 parameter_invalid_format. The effective version is echoed in the Factuarea-Version response header. See the Versioning guide.

Response

Example response

{
  "data": {
    "daily": [
      {
        "date": "2026-10-09",
        "requests_count": 1280,
        "successful_count": 1204,
        "client_error_count": 61,
        "rate_limited_count": 7,
        "error_count": 8
      }
    ],
    "total": {
      "requests_count": 1280,
      "successful_count": 1204,
      "client_error_count": 61,
      "rate_limited_count": 7,
      "error_count": 8
    },
    "last_used_at": "2026-10-10T18:42:07Z",
    "last_used_ip": "203.0.113.10"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.