Add channel to contact
POST
Add a new communication channel to an existing contact.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Path parameters
contactIdstringrequired
Body
application/json
channelstringrequiredChannel type.
One ofsmswhatsappemailtelegraminstagrammessengervoiceidentifierstringrequiredChannel identifier (phone number in E.164 format or email address).
countryCodestringISO country code for phone numbers.
Limitsmin length 2 · max length 2labelstringOptional label for the channel.
Limitsmax length 50isPrimarybooleanWhether this should be the primary channel for its type.
Defaultfalse
Responses
201Channel added.
channelobjectrequiredA communication channel for a contact.
12 properties
idstringrequiredchannelstringrequiredChannel type.
One ofsmswhatsappemailtelegraminstagrammessengervoiceidentifierstringrequiredChannel identifier (phone number or email address).
countryCodestringISO country code for phone numbers.
labelstringOptional label for the channel.
isPrimarybooleanrequiredWhether this is the primary channel for its type.
verifiedbooleanrequiredWhether this channel has been verified.
metricsobjectDelivery metrics for this channel.
5 properties
successCountintegerfailureCountintegertotalAttemptsintegeravgDeliveryTimeMsnumberlastSuccessAtstring<date-time>
lastInboundAtstring<date-time>Last time a message was received on this channel.
metadataobject1 properties
{key}string
createdAtstring<date-time>requiredupdatedAtstring<date-time>
400Invalid request or duplicate identifier.
codestringrequiredmessagestringrequireddetailsobject
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
404Contact not found.
codestringrequiredmessagestringrequireddetailsobject