Add channel to contact

Changed on

Add a new communication channel to an existing contact.

post/v1/contacts/{contactId}/channels

Request

  • Base URL
    https://api.zavu.dev
  • URL
    https://api.zavu.dev/v1/contacts/{contactId}/channels
  • Auth
    HTTP bearer

Path parameters

contactIdstring required

Request body

channel'sms' | 'whatsapp' | 'email' | 'telegram' | 'instagram' | 'messenger' | 'voice' required

Channel type.

identifierstring required

Channel identifier (phone number in E.164 format or email address).

countryCodestring

ISO country code for phone numbers.

labelstring

Optional label for the channel.

isPrimaryboolean

Whether this should be the primary channel for its type.

Example request

{
  "identifier": "+14155551234",
  "countryCode": "US",
  "label": "work"
}

Response

Channel added.

Example response

{
  "channel": {
    "identifier": "+14155551234",
    "countryCode": "US",
    "label": "work"
  }
}

Changes

    • warning

      added the new instagram enum value to the / response property for the response status

    • info

      added the new instagram enum value to the request property

    • warning

      added the new messenger enum value to the / response property for the response status

    • info

      added the new messenger enum value to the request property