Raw schema
{
"type": "object",
"properties": {
"visitor_id": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "Chaport visitor id (from chaport_list_visitors)."
},
"name": {
"description": "Visitor name.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"email": {
"description": "Visitor email address.",
"type": "string",
"maxLength": 320,
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"phone": {
"description": "Visitor phone number (free-form).",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"notes": {
"description": "Operator notes about the visitor .",
"type": "string",
"maxLength": 5000
},
"custom": {
"description": "Custom visitor fields as a JSON object (keys are your Chaport custom field keys).",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"email_marketing_consent": {
"description": "Whether the visitor consented to email marketing.",
"type": "boolean"
},
"source_host": {
"description": "Website the visitor contacted you from.",
"type": "string",
"minLength": 1,
"maxLength": 253
},
"utm": {
"description": "UTM parameters.",
"type": "object",
"properties": {
"source": {
"type": "string",
"maxLength": 200
},
"medium": {
"type": "string",
"maxLength": 200
},
"term": {
"type": "string",
"maxLength": 200
},
"campaign": {
"type": "string",
"maxLength": 200
},
"content": {
"type": "string",
"maxLength": 200
}
}
}
},
"required": [
"visitor_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}