GET/api/v6/account/usage

Usage by scope

Period usage broken down by organization, cost center, user, key and service.

Scope and limits

Scope

API key with the account capability granted

Usage limit

20 requests per minute

Account usage broken down by scope (organization, cost center, user, API key or service) for a period. The total field is the org:0 usage, that is the grand total. Amounts carry 6 decimals.

Sensitive financial data

The API key must have the account capability explicitly enabled. Access to all services does NOT grant it: it is granted separately, per key, from the customer portal (Developers → API keys). A key without the capability gets 403.

Query parameters

period
stringoptional
Period in YYYY-MM format. Defaults to the current month.

Responses

200

Period usage.

{
  "success": true,
  "data": {
    "period": "2026-06",
    "total": "108.000000",
    "scopes": [
      { "scopeType": "org", "scopeRef": "0", "consumed": "108.000000" },
      { "scopeType": "cost_center", "scopeRef": "17", "consumed": "108.000000" },
      { "scopeType": "service", "scopeRef": "urlshortener", "consumed": "108.000000" }
    ]
  },
  "meta": {
    "requestId": "b9b1704baffab21150213c02fd853975",
    "timestamp": "2026-06-02T19:43:59+00:00",
    "responseTimeMs": 4.1
  }
}
401

Invalid or missing credentials.

403

The API key lacks the required capability, or the organization cannot run the request.

429

Request limit exceeded. Wait for Retry-After.

Possible errors

Codes this endpoint can return in error.code. The full detail lives in the catalog.

See the full catalog
GET /api/v6/account/usage
curl -X GET 'https://developers.hablame.co/api/v6/account/usage' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer hk_YOUR_API_KEY'

Try-It

Run the request against the real API with your own API key.

The key is used only in your browser for this request. It is not stored nor sent anywhere else.

Parameters

Period in YYYY-MM format. Defaults to the current month.

GET https://developers.hablame.co/api/v6/account/usage

Response

You have not sent a request yet.