{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/html2img-com/json-schema/html2img-com-account-schema.json",
  "title": "Account",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/html2img-com-api-openapi.json#/components/schemas/Account",
  "type": "object",
  "required": [
    "email",
    "active",
    "free_plan",
    "credits_remaining"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email"
    },
    "plan": {
      "type": [
        "string",
        "null"
      ],
      "description": "Plan identifier, or null when no plan is assigned."
    },
    "plan_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "active": {
      "type": "boolean",
      "description": "Whether the account can render right now. False means renders will return 403 regardless of the balance."
    },
    "free_plan": {
      "type": "boolean",
      "description": "True on the one-time free allowance."
    },
    "credits_remaining": {
      "type": "integer",
      "minimum": 0
    },
    "credits_reset_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the balance renews. Null on the free tier, whose allowance is one-time and does not renew."
    }
  }
}