Add a Participant to a Channel.
Add a Participant to a Channel.
Path parameters
-
The Interaction Sid for the new Channel Participant.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^KD[0-9a-fA-F]{32}$
. -
The Channel Sid for the new Channel Participant.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^UO[0-9a-fA-F]{32}$
.
POST
/v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants
curl \
--request POST 'https://flex-api.twilio.com/v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Type=customer&MediaProperties=%7B%22level%22%3A+%22to%22%2C+%22name%22%3A+%22Random+Person+test%22%2C+%22address%22%3A%22random%40person.com%22%2C++%22type%22%3A+%22email%22%7D&RoutingProperties=%7B%22task_sid%22%3A+%22WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa%22%2C+%22worker_sid%22%3A+%22WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa%22%2C+%22reservation_sid%22%3A+%22WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa%22%7D'
Request example
{"Type"=>"customer", "MediaProperties"=>"{\"level\": \"to\", \"name\": \"Random Person test\", \"address\":\"random@person.com\", \"type\": \"email\"}", "RoutingProperties"=>"{\"task_sid\": \"WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\", \"worker_sid\": \"WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\", \"reservation_sid\": \"WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}"}
Response examples (201)
{
"sid": "UTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1",
"url": "https://flex-api.twilio.com/v1/Interactions/KDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/UOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1/Participants/UTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1",
"type": "customer",
"channel_sid": "UOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1",
"interaction_sid": "KDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"routing_properties": {
"task_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"worker_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"reservation_sid": "WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}