{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/boardwalkai-com/json-schema/boardwalkai-com-state-list-response-schema.json",
  "title": "StateListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/boardwalkai-com-locations-api-openapi.yml#/components/schemas/StateListResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/State"
      }
    },
    "meta": {
      "$ref": "#/$defs/GeographyScopeMeta"
    }
  },
  "$defs": {
    "GeographyScopeMeta": {
      "type": "object",
      "description": "The geographic ceiling on your plan, stated once instead of inferred from the per-state `entitled` flags.",
      "properties": {
        "geographyScope": {
          "type": "string",
          "enum": [
            "nationwide",
            "states",
            "counties",
            "none"
          ],
          "description": "The shape of your entitlement. `nationwide` reaches every state without listing any; `none` is a plan that includes no API geography."
        },
        "entitledStateIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer"
          },
          "description": "**Null means every state**, not none: it is the nationwide case. An empty array means nowhere. Treating the two alike turns a denial into unrestricted access, so branch on `geographyScope` if that distinction is easier to hold."
        },
        "countyRestricted": {
          "type": "boolean",
          "description": "True on a county-grain plan, where `entitled` on a state means \"part of this state\". Use `/locations/states/{id}/counties` to see which."
        }
      }
    },
    "State": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "abbreviation": {
          "type": "string",
          "minLength": 2,
          "maxLength": 2
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "entitled": {
          "type": "boolean",
          "description": "Whether **your key** may filter on this state. False means a query naming it returns `403 geographic_access_denied`. Always true on a nationwide plan. Every state is listed either way, so this is the field to build a picker against, not the presence of the row."
        }
      }
    }
  }
}