Create member
Users joined to specific channels
Body
-
The
identity
value that uniquely identifies the new resource's User within the Service. See access tokens for more details. -
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^RL[0-9a-fA-F]{32}$
.
POST
/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members
curl \
--request POST 'https://chat.twilio.com/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Identity=Twilio'
Request example
{"Identity"=>"Twilio"}
Response examples (201)
{
"sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://chat.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"identity": "jing",
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"channel_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2016-03-24T21:05:50Z",
"date_updated": "2016-03-24T21:05:50Z",
"last_consumption_timestamp": null,
"last_consumed_message_index": null
}