{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/forward-email/json-schema/forward-email-contact-input-schema.json",
  "title": "ContactInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/forward-email-contacts-api-openapi.yml#/components/schemas/ContactInput",
  "type": "object",
  "properties": {
    "content": {
      "type": "string",
      "description": "vCard content (if not provided, will be generated from other fields)"
    },
    "full_name": {
      "type": "string",
      "description": "Contact's full name"
    },
    "contact_id": {
      "type": "string",
      "description": "Custom contact ID (if not provided, will be auto-generated)"
    },
    "uid": {
      "type": "string",
      "description": "Contact UID (if not provided, will be auto-generated)"
    },
    "emails": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "format": "email"
          },
          "type": {
            "type": "string",
            "default": "INTERNET"
          }
        },
        "required": [
          "value"
        ]
      },
      "description": "Array of email addresses"
    },
    "phone_numbers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "default": "CELL"
          }
        },
        "required": [
          "value"
        ]
      },
      "description": "Array of phone numbers"
    },
    "phones": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "default": "CELL"
          }
        },
        "required": [
          "value"
        ]
      },
      "description": "Array of phone numbers (alias for phone_numbers)"
    },
    "addresses": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "street": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      },
      "description": "Array of addresses"
    },
    "is_group": {
      "type": "boolean",
      "description": "Whether contact is a group"
    }
  }
}