{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/athenahq-ai/json-schema/athenahq-ai-credits-response-schema.json",
  "title": "CreditsResponse",
  "description": "Credit balance response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/athenahq-ai-billing-api-openapi.yml#/components/schemas/CreditsResponse",
  "type": "object",
  "required": [
    "credits"
  ],
  "properties": {
    "credits": {
      "type": "object",
      "required": [
        "total",
        "monthly",
        "one_off"
      ],
      "properties": {
        "total": {
          "type": "integer",
          "description": "Total credit balance (monthly + one-off)"
        },
        "monthly": {
          "type": "object",
          "description": "Monthly recurring credits",
          "required": [
            "balance",
            "next_reset_at"
          ],
          "properties": {
            "balance": {
              "type": "integer",
              "description": "Current monthly credit balance"
            },
            "next_reset_at": {
              "type": "integer",
              "description": "Timestamp in milliseconds when monthly credits will reset"
            }
          }
        },
        "one_off": {
          "type": "object",
          "description": "One-off purchased credits",
          "required": [
            "balance"
          ],
          "properties": {
            "balance": {
              "type": "integer",
              "description": "Current one-off credit balance"
            }
          }
        }
      }
    }
  }
}