Improved

Interactions API: Improved Phone Number Handling


Interactions API and Phone Numbers

Previous Phone Number Support

The Interactions API did not validate phone numbers sent in interaction.channel. The documentation also did not fully convey that "phone_number" is the appropriate channel.type identifier when providing phone numbers.

New Phone Number Support

Improved Documentation Clarity

We've updated our documentation to reflect that "phone_number" is the appropriate channel.type identifier when providing phone numbers.

Phone Number Validation

Phone numbers are now subjected to validation when provided and properly identified via the "phone_number" channel.type as described above. Phone number formatting must follow the E.164 standard or the request will be rejected.

Example

Below is a JSON snippet that reflects the appropriate channel content for a phone number:

{
...
  "channel":
  	{
    	"type": "phone_number",
      "value": "+14155550777"
    }
...
}