{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sendgrid/main/json-schema/sendgrid-contact-details-schema.json",
  "title": "contact-details2",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendgrid-lists-api-openapi.yml#/components/schemas/ContactDetails",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 36,
      "maxLength": 36,
      "format": "uuid"
    },
    "first_name": {
      "type": "string"
    },
    "last_name": {
      "type": "string"
    },
    "unique_name": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "phone_number_id": {
      "type": "string"
    },
    "external_id": {
      "type": "string"
    },
    "anonymous_id": {
      "type": "string"
    },
    "alternate_emails": {
      "items": {
        "type": "string",
        "format": "email"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "address_line_1": {
      "type": "string"
    },
    "address_line_2": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "state_province_region": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "postal_code": {
      "type": "string"
    },
    "phone_number": {
      "type": "string"
    },
    "whatsapp": {
      "type": "string"
    },
    "line": {
      "type": "string"
    },
    "facebook": {
      "type": "string"
    },
    "list_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "segment_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "custom_fields": {
      "type": "object"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "_metadata": {
      "$ref": "#/$defs/SelfMetadata"
    }
  },
  "required": [
    "id",
    "list_ids",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "SelfMetadata": {
      "title": "selfMetadata",
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "description": "A link to this object."
        }
      }
    }
  }
}