{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/serpkite-com/json-schema/serpkite-com-account-schema.json",
  "title": "Account",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/serpkite-com-account-api-openapi.yml#/components/schemas/Account",
  "type": "object",
  "required": [
    "balance",
    "rate_limit_rps",
    "plan",
    "month"
  ],
  "properties": {
    "balance": {
      "type": "number",
      "description": "Negative after a refund of credits that were already spent; requests then get 402 insufficient_credits"
    },
    "rate_limit_rps": {
      "type": "integer"
    },
    "plan": {
      "type": "string",
      "enum": [
        "free",
        "paid"
      ]
    },
    "key": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "credit_limit": {
          "type": [
            "number",
            "null"
          ]
        },
        "credits_used_month": {
          "type": "number"
        }
      }
    },
    "monthly_spend_cap": {
      "type": [
        "number",
        "null"
      ]
    },
    "month": {
      "type": "object",
      "required": [
        "credits",
        "requests"
      ],
      "properties": {
        "credits": {
          "type": "number"
        },
        "requests": {
          "type": "integer"
        }
      }
    }
  }
}