Menu

Expand
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Flex Chat Channels

Flex Chat Channels allow agents to communicate with your customers across multiple channels like Webchat, SMS, and Whatsapp through a single chat interface. You can create a chat channel in Flex whenever you want to initiate a new communication flow between an agent and a customer.

Channel properties

Names in PHP format
accountSid
sid<AC> Not PII

The SID of the Account that created the Channel resource and owns this Workflow.

flexFlowSid
sid<FO> Not PII

The SID of the FlexFlow.

sid
sid<CH> Not PII

The unique string that we created to identify the Channel resource.

userSid
sid<US> Not PII

The SID of the chat user.

taskSid
sid<WT> Not PII

The SID of the TaskRouter task.

url
url Not PII

The absolute URL of the Flex chat channel resource.

dateCreated
date_time<iso8601> Not PII

The date and time in GMT when the Flex chat channel was created specified in ISO 8601 format.

dateUpdated
date_time<iso8601> Not PII

The date and time in GMT when the Flex chat channel was last updated specified in ISO 8601 format.

Create a Channel resource

post
https://flex-api.twilio.com/v1/Channels
Parameters
Names in None format
flex_flow_sid
Required
post sid<FO> Not PII

The SID of the FlexFlow.

identity
Required
post string PII MTL: 30 DAYS

The identity value that uniquely identifies the new resource's chat User.

chat_user_friendly_name
Required
post string PII MTL: 30 DAYS

The chat participant's friendly name.

chat_friendly_name
Required
post string PII MTL: 30 DAYS

The chat channel's friendly name.

target
Optional
post string PII MTL: 30 DAYS

The Target Contact Identity, for example the phone number of an SMS.

chat_unique_name
Optional
post string PII MTL: 30 DAYS

The chat channel's unique name.

pre_engagement_data
Optional
post string PII MTL: 30 DAYS

The pre-engagement data.

task_sid
Optional
post sid<WT> Not PII

The SID of the TaskRouter task.

task_attributes
Optional
post string PII MTL: 30 DAYS

The task attributes to be added for the TaskRouter Task.

long_lived
Optional
post boolean Not PII

Whether to create the channel as long-lived.

Example 1
        
        
        
        

        Fetch a Channel resource

        get
        https://flex-api.twilio.com/v1/Channels/{Sid}
        Parameters
        Names in None format
        sid
        Required
        get sid<CH> Not PII

        The SID of the Flex chat channel resource to fetch.

        Example 1
              
              
              
              

              Read multiple Channel resources

              get
              https://flex-api.twilio.com/v1/Channels
              Example 1
                    
                    
                    
                    

                    Delete a Channel resource

                    delete
                    https://flex-api.twilio.com/v1/Channels/{Sid}
                    Parameters
                    Names in None format
                    sid
                    Required
                    delete sid<CH> Not PII

                    The SID of the Flex chat channel resource to delete.

                    Example 1
                          
                          
                          
                          
                          Rate this page:

                          Need some help?

                          We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.