{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-recipient-input-schema.json",
  "title": "RecipientInput",
  "description": "Input for creating or updating a recipient",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-recipients-api-openapi.yml#/components/schemas/RecipientInput",
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "description": "Email address of the recipient"
    },
    "first_name": {
      "type": "string",
      "description": "First name of the recipient"
    },
    "last_name": {
      "type": "string",
      "description": "Last name of the recipient"
    },
    "custom_fields": {
      "type": "object",
      "description": "Custom fields associated with the recipient",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}