Raw schema
{
"type": "object",
"properties": {
"list_names": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 30
},
"description": "Names of existing distribution lists to add the contacts to."
},
"subscriptions": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"first_name": {
"type": "string",
"maxLength": 100
},
"last_name": {
"type": "string",
"maxLength": 100
},
"email": {
"type": "string",
"maxLength": 200,
"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,}$"
},
"mobile": {
"type": "object",
"properties": {
"number": {
"type": "string",
"pattern": "^\\d{4,20}$",
"description": "Mobile number, digits only (US: 10 digits)."
},
"country_code": {
"description": "Country code (default 1).",
"type": "string",
"pattern": "^\\d{1,4}$"
}
},
"required": [
"number"
]
},
"landline": {
"type": "object",
"properties": {
"number": {
"type": "string",
"pattern": "^\\d{4,20}$",
"description": "Landline number, digits only (10 digits)."
},
"country_code": {
"type": "string",
"pattern": "^\\d{1,4}$"
}
},
"required": [
"number"
]
},
"voice_device": {
"description": "Number to reach by voice (US, Canada, Guam, Puerto Rico).",
"type": "string",
"enum": [
"mobile",
"landline"
]
},
"customdata": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"customdata_id": {
"type": "string",
"pattern": "^\\d{1,20}$",
"description": "Custom data field id (from trumpia_list_custom_fields)."
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 4000,
"description": "The value; its format depends on the field type."
}
},
"required": [
"customdata_id",
"value"
]
}
}
}
},
"description": "1-100 contacts."
}
},
"required": [
"list_names",
"subscriptions"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}