Flex Conversations requires Flex UI 2.0.x. If you are on Flex UI 1.x.x, refer to the Messaging in Flex pages.
The Interaction Channel Participant subresource represents the actors communicating in an interaction channel. Typically, a channel will include people like agents, customers, and supervisors.
The unique string created by Twilio to identify an Interaction Channel Participant resource.
^UT[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
Participant type. Can be: agent
, customer
, supervisor
, external
, unknown
supervisor
customer
external
agent
unknown
The Interaction Sid for this channel.
^KD[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The Channel Sid for this Participant.
^UO[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The Participant's routing properties.
GET https://flex-api.twilio.com/v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants
How many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Maximum: 1000
The page token. This is provided by the API.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function listInteractionChannelParticipant() {11const participants = await client.flexApi.v112.interaction("KDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")13.channels("UOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")14.participants.list({ limit: 20 });1516participants.forEach((p) => console.log(p.sid));17}1819listInteractionChannelParticipant();
1{2"participants": [3{4"sid": "UTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1",5"channel_sid": "UOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1",6"interaction_sid": "KDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",7"type": "customer",8"routing_properties": null,9"url": "https://flex-api.twilio.com/v1/Interactions/KDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/UOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1/Participants/UTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1"10},11{12"sid": "UTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa2",13"channel_sid": "UOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1",14"interaction_sid": "KDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",15"type": "agent",16"routing_properties": {17"task_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",18"worker_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",19"reservation_sid": "WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"20},21"url": "https://flex-api.twilio.com/v1/Interactions/KDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/UOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1/Participants/UTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa2"22}23],24"meta": {25"page": 0,26"page_size": 50,27"first_page_url": "https://flex-api.twilio.com/v1/Interactions/KDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/UOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1/Participants?PageSize=50&Page=0",28"previous_page_url": null,29"url": "https://flex-api.twilio.com/v1/Interactions/KDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/UOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1/Participants?PageSize=50&Page=0",30"next_page_url": null,31"key": "participants"32}33}
POST https://flex-api.twilio.com/v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants/{Sid}
The Interaction Sid for this channel.
^KD[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The Channel Sid for this Participant.
^UO[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The unique string created by Twilio to identify an Interaction Channel resource.
^UT[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
application/x-www-form-urlencoded
The Participant's status. Can be: closed
or wrapup
. Participant must be an agent.
closed
wrapup
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function updateInteractionChannelParticipant() {11const participant = await client.flexApi.v112.interaction("KDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")13.channels("UOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")14.participants("UTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")15.update({ status: "wrapup" });1617console.log(participant.sid);18}1920updateInteractionChannelParticipant();
1{2"sid": "UTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",3"channel_sid": "UOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",4"interaction_sid": "KDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",5"type": "agent",6"routing_properties": {7"task_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",8"worker_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",9"reservation_sid": "WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"10},11"url": "https://flex-api.twilio.com/v1/Interactions/KDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/UOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1/Participants/UTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1"12}
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function updateInteractionChannelParticipant() {11const participant = await client.flexApi.v112.interaction("KDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")13.channels("UOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")14.participants("UTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")15.update({ status: "closed" });1617console.log(participant.sid);18}1920updateInteractionChannelParticipant();
1{2"sid": "UTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",3"channel_sid": "UOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",4"interaction_sid": "KDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",5"type": "agent",6"routing_properties": {7"task_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",8"worker_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",9"reservation_sid": "WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"10},11"url": "https://flex-api.twilio.com/v1/Interactions/KDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/UOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1/Participants/UTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1"12}