Add a Participant to a Channel
TODO: Resource-level docs
Add a Participant to a Channel.
Path parameters
-
The Interaction Sid for the new Channel Participant.
-
The Channel Sid for the new Channel Participant.
Body
-
MediaProperties Required
JSON representing the Media Properties for the new Participant.
-
Participant type. Can be:
agent
,customer
,supervisor
,external
orunknown
.Values are
supervisor
,customer
,external
,agent
, orunknown
.
POST /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants
curl \
-X POST https://flex-api.twilio.com/v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Type=supervisor'
Request example
{
"Type": "supervisor"
}
Request examples
{
"Type": "supervisor"
}
Response examples (201)
{
"channel_sid": "string",
"interaction_sid": "string",
"sid": "string",
"type": "supervisor",
"url": "https://example.com"
}
Response examples (201)
{
"channel_sid": "string",
"interaction_sid": "string",
"sid": "string",
"type": "supervisor",
"url": "https://example.com"
}