{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sendgrid/main/json-schema/sendgrid-subuser-schema.json",
  "title": "List all Subusers for a parent response",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendgrid-subusers-api-openapi.yml#/components/schemas/Subuser",
  "type": "object",
  "properties": {
    "disabled": {
      "type": "boolean",
      "description": "Whether or not the user is enabled or disabled."
    },
    "id": {
      "type": "number",
      "description": "The ID of this subuser."
    },
    "username": {
      "type": "string",
      "description": "The name by which this subuser will be referred."
    },
    "email": {
      "type": "string",
      "description": "The email address to contact this subuser.",
      "format": "email"
    },
    "region": {
      "type": "string",
      "description": "The region this Subuser is assigned to. This property is returned only if the `include_region` parameter was included and set to `true` in the API request.",
      "$ref": "#/$defs/Region2"
    }
  },
  "required": [
    "disabled",
    "id",
    "username",
    "email"
  ],
  "$defs": {
    "Region2": {
      "type": "string",
      "enum": [
        "global",
        "eu"
      ]
    }
  }
}