{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/winnr-app/json-schema/winnr-app-account-response-schema.json",
  "title": "AccountResponse",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/winnr-app-openapi.yaml#/components/schemas/AccountResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Account ID"
        },
        "name": {
          "type": "string",
          "description": "Account name"
        },
        "email": {
          "type": "string",
          "description": "Account owner email"
        },
        "plan": {
          "type": "string",
          "description": "Current plan name (e.g. \"Startup\", \"Enterprise\")"
        },
        "domains_limit": {
          "type": "integer",
          "description": "Maximum number of domains allowed"
        },
        "domains_used": {
          "type": "integer",
          "description": "Number of domains currently in use"
        },
        "domain_credits": {
          "type": "integer",
          "description": "Domain credits available (each credit covers one domain purchase)"
        },
        "email_users_limit": {
          "type": "integer",
          "description": "Maximum number of email users allowed"
        },
        "email_users_used": {
          "type": "integer",
          "description": "Number of email users currently in use"
        },
        "stripe_subscription_status": {
          "type": "string",
          "description": "Subscription status (e.g. \"active\", \"canceled\", \"past_due\")"
        },
        "prewarmed_subscription_status": {
          "type": [
            "string",
            "null"
          ],
          "description": "Status of the standalone pre-warmed ($3/addr) subscription, if any"
        },
        "prewarmed_domains_disabled": {
          "type": "boolean",
          "description": "True while pre-warmed domains are suspended for non-payment"
        },
        "universal_inbox_enabled": {
          "type": "boolean",
          "description": "Whether inbox sync (the Universal Inbox) is on. Change it with POST /v1/account/universal-inbox."
        },
        "api_token": {
          "type": "object",
          "description": "Present only when the request is authenticated with an API token.\nDescribes the calling token itself so integrations can discover\ntheir own scope (the Winnr MCP server hides write tools when\n`permissions` lacks \"write\").\n",
          "properties": {
            "id": {
              "type": "string",
              "description": "Token ID"
            },
            "name": {
              "type": [
                "string",
                "null"
              ],
              "description": "Token name as set at creation"
            },
            "permissions": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "read",
                  "write"
                ]
              }
            }
          }
        }
      }
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "Meta": {
      "type": "object",
      "properties": {
        "request_id": {
          "type": "string"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}