Get API consumer allowance

Changed on

Returns the live read model for the current UTC usage period and lazily rolls an expired period forward.

post/get_api_consumer_allowance

Request

  • Base URL
    https://api-integration-v2-qd6wo466iq-uc.a.run.app
  • URL
    https://api-integration-v2-qd6wo466iq-uc.a.run.app/get_api_consumer_allowance
  • Auth
    HTTP bearer

Request body

apiIntegrationIdstring required
consumerIdstring required

Response

Current allowance returned.

consumerIdstring required
activeboolean required
canStartRunboolean required

False when access is disabled or the current period is exhausted.

Example response

{
  "period": {
    "id": "2026-09-23",
    "limitMicros": 20000000,
    "spentMicros": 4250000,
    "remainingMicros": 15750000,
    "inputTokens": 1200,
    "outputTokens": 300,
    "usageItemCount": 2
  }
}

Changes