{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/volunteerreminder-com/json-schema/volunteerreminder-com-account-response-schema.json",
  "title": "AccountResponse",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/volunteerreminder-com-openapi.yml#/components/schemas/AccountResponse",
  "type": "object",
  "properties": {
    "account": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "time_zone": {
          "type": [
            "string",
            "null"
          ],
          "description": "IANA timezone id, or null if unset."
        },
        "unique_code": {
          "type": [
            "string",
            "null"
          ],
          "description": "Public open-dates embed code for this account, or null."
        },
        "created_at": {
          "type": "number",
          "description": "Epoch milliseconds (UTC)."
        }
      },
      "required": [
        "id",
        "name",
        "time_zone",
        "unique_code",
        "created_at"
      ]
    },
    "plan": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Paid plan id (basic/deluxe/pro), or null on trial/legacy."
        },
        "label": {
          "type": "string"
        },
        "source": {
          "type": "string",
          "enum": [
            "paid",
            "trial",
            "trial_expired",
            "legacy"
          ],
          "description": "How the effective entitlements were derived."
        },
        "is_active": {
          "type": "boolean",
          "description": "Whether reminders may flow (paid-active or live trial)."
        },
        "is_trialing": {
          "type": "boolean"
        },
        "trial_days_left": {
          "type": [
            "number",
            "null"
          ],
          "description": "Whole days left in the trial, or null when not trialing."
        },
        "trial_ends_at": {
          "type": [
            "number",
            "null"
          ],
          "description": "Trial end, epoch ms (UTC), or null."
        }
      },
      "required": [
        "id",
        "label",
        "source",
        "is_active",
        "is_trialing",
        "trial_days_left",
        "trial_ends_at"
      ]
    },
    "entitlements": {
      "type": "object",
      "properties": {
        "sms_reminders": {
          "type": "boolean"
        },
        "signup_widget": {
          "type": "boolean"
        },
        "substitute_finder": {
          "type": "boolean"
        },
        "customized_reminders": {
          "type": "boolean"
        },
        "group_names": {
          "type": "boolean"
        },
        "reminders_per_shift": {
          "type": "number"
        }
      },
      "required": [
        "sms_reminders",
        "signup_widget",
        "substitute_finder",
        "customized_reminders",
        "group_names",
        "reminders_per_shift"
      ]
    },
    "reminder_mode": {
      "type": "string",
      "enum": [
        "test",
        "live"
      ],
      "description": "THIS ACCOUNT's own reminder posture. 'test' is an agent sandbox — reminders reroute to the account owner's own address, never a real volunteer; 'live' reaches real volunteers. Agent-created accounts start 'test'; only a human can switch it to 'live' from the dashboard (never via this API or the MCP server). See also `effective_mode`."
    },
    "effective_mode": {
      "type": "string",
      "enum": [
        "off",
        "test",
        "live"
      ],
      "description": "What actually happens at send time: the MOST RESTRICTIVE of this account's `reminder_mode` and the deployment-wide kill-switch. It is 'off' when sending is globally paused, 'test' when either this account or the deployment is in test, and 'live' only when BOTH are live. Read this to know whether a reminder would actually reach a volunteer."
    },
    "usage": {
      "type": "object",
      "properties": {
        "volunteers": {
          "type": "object",
          "properties": {
            "used": {
              "type": "number",
              "description": "Active (non-deleted) volunteers."
            },
            "limit": {
              "type": "number",
              "description": "Plan volunteer cap."
            }
          },
          "required": [
            "used",
            "limit"
          ]
        },
        "schedules": {
          "type": "object",
          "properties": {
            "used": {
              "type": "number",
              "description": "Active schedules (no enforced cap)."
            }
          },
          "required": [
            "used"
          ]
        }
      },
      "required": [
        "volunteers",
        "schedules"
      ]
    }
  },
  "required": [
    "account",
    "plan",
    "entitlements",
    "reminder_mode",
    "effective_mode",
    "usage"
  ]
}