AccountLimitItem
Type: object additionalProperties: false
| Field | Required | Type | Description and constraints |
|---|---|---|---|
account_id | Yes | string | |
profiles | Yes | array<string> | |
state | Yes | string | enum: ["unknown","unavailable","stale","fresh"] |
observed_at | Yes | string / null | format: "date-time" |
last_attempt_at | Yes | string / null | format: "date-time" |
error_code | Yes | string / null | |
buckets | Yes | array<AccountLimitBucket> | |
reset_credits_available | Yes | integer / null | Available earned rate-limit resets for the account; null when unknown. Uses the same observation time and freshness state as the quota windows. |
JSON Schema
json
{
"type": "object",
"additionalProperties": false,
"required": [
"account_id",
"profiles",
"state",
"observed_at",
"last_attempt_at",
"error_code",
"buckets",
"reset_credits_available"
],
"properties": {
"account_id": {
"type": "string"
},
"profiles": {
"type": "array",
"items": {
"type": "string"
}
},
"state": {
"type": "string",
"enum": [
"unknown",
"unavailable",
"stale",
"fresh"
]
},
"observed_at": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"last_attempt_at": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"error_code": {
"anyOf": [
{
"type": "string",
"enum": [
"unsupported",
"temporarily_unavailable",
"invalid_response",
"no_data",
"authentication_unavailable"
],
"x-enum-varnames": [
"AccountLimitItemErrorCodeUnsupported",
"AccountLimitItemErrorCodeTemporarilyUnavailable",
"AccountLimitItemErrorCodeInvalidResponse",
"AccountLimitItemErrorCodeNoData",
"AccountLimitItemErrorCodeAuthenticationUnavailable"
]
},
{
"type": "null"
}
]
},
"buckets": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountLimitBucket"
}
},
"reset_credits_available": {
"description": "Available earned rate-limit resets for the account; null when unknown. Uses the same observation time and freshness state as the quota windows.",
"anyOf": [
{
"type": "integer",
"format": "int64",
"minimum": 0
},
{
"type": "null"
}
]
}
}
}