Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Conversation Participant Resource


Each Participant in a Conversation represents one real (probably human) participant in a Conversation.

Creating a Participant joins them with the conversation, and the connected person will receive all subsequent messages.

Deleting a participant removes them from the conversation. They will receive no new messages after that point, but their previous messages will remain in the conversation.


API Base URL

api-base-url page anchor

All URLs in the reference documentation use the following base URL:


_10
https://conversations.twilio.com/v1

Using the shortened base URL

using-the-shortened-base-url page anchor

Using the REST API, you can interact with Conversation Participant resources in the default Conversation Service instance via a "shortened" URL that does not include the Conversation Service instance SID ("ISXXX..."). If you are only using one Conversation Service (the default), you do not need to include the Conversation Service SID in your URL, e.g.


_10
GET /v1/Conversations/CHxx/Participants

For Conversations applications that build on more than one Conversation Service instance, you will need to specify the Conversation Service SID in the REST API call:


_10
GET /v1/Services/ISxx/Conversations/CHxx/Participants


ConversationParticipant Properties

conversationparticipant-properties page anchor
Resource properties
account_sidtype: SID<AC>Not PII

conversation_sidtype: SID<CH>Not PII

The unique ID of the Conversation(link takes you to an external page) for this participant.


sidtype: SID<MB>Not PII

A 34 character string that uniquely identifies this resource.


identitytype: stringPII MTL: 30 days

A unique string identifier for the conversation participant as Conversation User(link takes you to an external page). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.


attributestype: stringPII MTL: 30 days

An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. Note that if the attributes are not set "{}" will be returned.


messaging_bindingtype: objectPII MTL: 30 days

Information about how this participant exchanges messages with the conversation. A JSON parameter consisting of type and address fields of the participant.


role_sidtype: SID<RL>Not PII

The SID of a conversation-level Role(link takes you to an external page) to assign to the participant.


date_createdtype: string<DATE TIME>Not PII

The date that this resource was created.


date_updatedtype: string<DATE TIME>Not PII

The date that this resource was last updated.


urltype: string<URI>Not PII

An absolute API resource URL for this participant.


last_read_message_indextype: integerNot PII

Index of last “read” message in the Conversation(link takes you to an external page) for the Participant.


last_read_timestamptype: stringNot PII

Timestamp of last “read” message in the Conversation(link takes you to an external page) for the Participant.


Add a Conversation Participant (SMS)

add-a-conversation-participant-sms page anchor
POST https://conversations.twilio.com/v1/Conversations/{ConversationSid}/Participants

Adding a new participant to an ongoing conversation immediately allows them to see all subsequent communications. The same person (i.e., a single personal phone number) can be part of any number of conversations concurrently, as long as the address they are in contact with (the ProxyAddress) is unique.

To create a Conversation Participant by SMS, you must enter:

  1. Their phone number as the messagingbinding.address
  2. Your Twilio number as the messagingbinding.proxyaddress .

To create a Conversation Participant by Chat, you must enter the Chat User Identity as the identity parameter.
We recommend following the standard URI specification and avoid the following reserved characters ! * ' ( ) ; : @ & = + $ , / ? % # [ ] for values such as identity and friendly name.

Parameters

create-parameters page anchor
Request headers
X-Twilio-Webhook-Enabledtype: enum<STRING>Not PII

The X-Twilio-Webhook-Enabled HTTP request header

Possible values:
truefalse

URI parameters
ConversationSidtype: stringNot PII
Path Parameter

The unique ID of the Conversation(link takes you to an external page) for this participant.


Request body parameters
Identitytype: stringPII MTL: 30 days

A unique string identifier for the conversation participant as Conversation User(link takes you to an external page). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.


MessagingBinding.Addresstype: stringNot PII

The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field).


MessagingBinding.ProxyAddresstype: stringNot PII

The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field).


DateCreatedtype: string<DATE TIME>Not PII

The date that this resource was created.


DateUpdatedtype: string<DATE TIME>Not PII

The date that this resource was last updated.


Attributestype: stringPII MTL: 30 days

An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. Note that if the attributes are not set "{}" will be returned.


MessagingBinding.ProjectedAddresstype: stringNot PII

The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity.


RoleSidtype: SID<RL>Not PII

The SID of a conversation-level Role(link takes you to an external page) to assign to the participant.

Create Conversation Participant (SMS)

create-conversation-participant-sms page anchor

Connect someone to a Conversation over SMS

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_14
// Download the helper library from https://www.twilio.com/docs/node/install
_14
// Find your Account SID and Auth Token at twilio.com/console
_14
// and set the environment variables. See http://twil.io/secure
_14
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_14
const authToken = process.env.TWILIO_AUTH_TOKEN;
_14
const client = require('twilio')(accountSid, authToken);
_14
_14
client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_14
.participants
_14
.create({
_14
'messagingBinding.address': '+15558675310',
_14
'messagingBinding.proxyAddress': '<Your Twilio Number>'
_14
})
_14
.then(participant => console.log(participant.sid));

Output

_20
{
_20
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"conversation_sid": "CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"sid": "MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"identity": null,
_20
"attributes": {
_20
"role": "driver"
_20
},
_20
"messaging_binding": {
_20
"type": "sms",
_20
"address": "+15558675310",
_20
"proxy_address": "+15017122661"
_20
},
_20
"role_sid": "RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"date_created": "2015-12-16T22:18:37Z",
_20
"date_updated": "2015-12-16T22:18:38Z",
_20
"url": "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"last_read_message_index": null,
_20
"last_read_timestamp": null
_20
}

Create Conversation Participant (Chat)

create-conversation-participant-chat page anchor

Connect someone to a Conversation over Chat

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_11
// Download the helper library from https://www.twilio.com/docs/node/install
_11
// Find your Account SID and Auth Token at twilio.com/console
_11
// and set the environment variables. See http://twil.io/secure
_11
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11
const authToken = process.env.TWILIO_AUTH_TOKEN;
_11
const client = require('twilio')(accountSid, authToken);
_11
_11
client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.participants
_11
.create({identity: '<Chat User Identity>'})
_11
.then(participant => console.log(participant.sid));

Output

_16
{
_16
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_16
"conversation_sid": "CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_16
"sid": "MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_16
"identity": "<Chat User Identity>",
_16
"attributes": {
_16
"role": "driver"
_16
},
_16
"messaging_binding": null,
_16
"role_sid": "RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_16
"date_created": "2015-12-16T22:18:37Z",
_16
"date_updated": "2015-12-16T22:18:38Z",
_16
"url": "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_16
"last_read_message_index": null,
_16
"last_read_timestamp": null
_16
}


Fetch a ConversationParticipant resource

fetch-a-conversationparticipant-resource page anchor
GET https://conversations.twilio.com/v1/Conversations/{ConversationSid}/Participants/{Sid}

URI parameters
ConversationSidtype: stringNot PII
Path Parameter

The unique ID of the Conversation(link takes you to an external page) for this participant.


Sidtype: stringNot PII
Path Parameter

A 34 character string that uniquely identifies this resource. Alternatively, you can pass a Participant's identity rather than the SID.

Fetch Conversation Participant by SID

fetch-conversation-participant-by-sid page anchor

Fetch a Conversation Participant by SID

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_11
// Download the helper library from https://www.twilio.com/docs/node/install
_11
// Find your Account SID and Auth Token at twilio.com/console
_11
// and set the environment variables. See http://twil.io/secure
_11
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11
const authToken = process.env.TWILIO_AUTH_TOKEN;
_11
const client = require('twilio')(accountSid, authToken);
_11
_11
client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.participants('MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.fetch()
_11
.then(participant => console.log(participant.conversationSid));

Output

_20
{
_20
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"conversation_sid": "CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"sid": "MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"identity": null,
_20
"attributes": {
_20
"role": "driver"
_20
},
_20
"messaging_binding": {
_20
"type": "sms",
_20
"address": "+15558675310",
_20
"proxy_address": "+15017122661"
_20
},
_20
"role_sid": "RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"date_created": "2016-03-24T21:05:50Z",
_20
"date_updated": "2016-03-24T21:05:50Z",
_20
"url": "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"last_read_message_index": null,
_20
"last_read_timestamp": null
_20
}

You can also fetch a Conversation Participant by their identity. Pass their identity as the value for the sid argument.

Fetch Conversation Participant by identity

fetch-conversation-participant-by-identity page anchor

Fetch a Conversation Participant by identity

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_11
// Download the helper library from https://www.twilio.com/docs/node/install
_11
// Find your Account SID and Auth Token at twilio.com/console
_11
// and set the environment variables. See http://twil.io/secure
_11
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11
const authToken = process.env.TWILIO_AUTH_TOKEN;
_11
const client = require('twilio')(accountSid, authToken);
_11
_11
client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.participants('alice')
_11
.fetch()
_11
.then(participant => console.log(participant.conversationSid));

Output

_20
{
_20
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"conversation_sid": "CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"sid": "MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"identity": "alice",
_20
"attributes": {
_20
"role": "driver"
_20
},
_20
"messaging_binding": {
_20
"type": "sms",
_20
"address": "+15558675310",
_20
"proxy_address": "+15017122661"
_20
},
_20
"role_sid": "RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"date_created": "2016-03-24T21:05:50Z",
_20
"date_updated": "2016-03-24T21:05:50Z",
_20
"url": "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"last_read_message_index": null,
_20
"last_read_timestamp": null
_20
}


Read multiple ConversationParticipant resources

read-multiple-conversationparticipant-resources page anchor
GET https://conversations.twilio.com/v1/Conversations/{ConversationSid}/Participants

URI parameters
ConversationSidtype: stringNot PII
Path Parameter

The unique ID of the Conversation(link takes you to an external page) for participants.


PageSizetype: integerNot PII
Query Parameter

How many resources to return in each list page. The default is 50, and the maximum is 1000.


Pagetype: integerNot PII
Query Parameter

The page index. This value is simply for client state.


PageTokentype: stringNot PII
Query Parameter

The page token. This is provided by the API.

List Conversation Participant(s)

list-conversation-participants page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_11
// Download the helper library from https://www.twilio.com/docs/node/install
_11
// Find your Account SID and Auth Token at twilio.com/console
_11
// and set the environment variables. See http://twil.io/secure
_11
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11
const authToken = process.env.TWILIO_AUTH_TOKEN;
_11
const client = require('twilio')(accountSid, authToken);
_11
_11
client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.participants
_11
.list({limit: 20})
_11
.then(participants => participants.forEach(p => console.log(p.sid)));

Output

_49
{
_49
"meta": {
_49
"page": 0,
_49
"page_size": 50,
_49
"first_page_url": "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants?PageSize=50&Page=0",
_49
"previous_page_url": "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants?PageSize=50&Page=0",
_49
"url": "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants?PageSize=50&Page=0",
_49
"next_page_url": "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants?PageSize=50&Page=1",
_49
"key": "participants"
_49
},
_49
"participants": [
_49
{
_49
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_49
"conversation_sid": "CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_49
"sid": "MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_49
"identity": null,
_49
"attributes": {
_49
"role": "driver"
_49
},
_49
"messaging_binding": {
_49
"type": "sms",
_49
"address": "+15558675310",
_49
"proxy_address": "+15017122661"
_49
},
_49
"role_sid": "RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_49
"date_created": "2016-03-24T21:05:50Z",
_49
"date_updated": "2016-03-24T21:05:50Z",
_49
"url": "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_49
"last_read_message_index": null,
_49
"last_read_timestamp": null
_49
},
_49
{
_49
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_49
"conversation_sid": "CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_49
"sid": "MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_49
"identity": "IDENTITY",
_49
"attributes": {
_49
"role": "driver"
_49
},
_49
"messaging_binding": null,
_49
"role_sid": "RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_49
"date_created": "2016-03-24T21:05:50Z",
_49
"date_updated": "2016-03-24T21:05:50Z",
_49
"url": "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_49
"last_read_message_index": null,
_49
"last_read_timestamp": null
_49
}
_49
]
_49
}


Update a ConversationParticipant resource

update-a-conversationparticipant-resource page anchor
POST https://conversations.twilio.com/v1/Conversations/{ConversationSid}/Participants/{Sid}

Request headers
X-Twilio-Webhook-Enabledtype: enum<STRING>Not PII

The X-Twilio-Webhook-Enabled HTTP request header

Possible values:
truefalse

URI parameters
ConversationSidtype: stringNot PII
Path Parameter

The unique ID of the Conversation(link takes you to an external page) for this participant.


Sidtype: stringNot PII
Path Parameter

A 34 character string that uniquely identifies this resource.


Request body parameters
DateCreatedtype: string<DATE TIME>Not PII

The date that this resource was created.


DateUpdatedtype: string<DATE TIME>Not PII

The date that this resource was last updated.


Attributestype: stringPII MTL: 30 days

An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. Note that if the attributes are not set "{}" will be returned.


RoleSidtype: SID<RL>Not PII

The SID of a conversation-level Role(link takes you to an external page) to assign to the participant.


MessagingBinding.ProxyAddresstype: stringNot PII

The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it.


MessagingBinding.ProjectedAddresstype: stringNot PII

The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it.


Identitytype: stringPII MTL: 30 days

A unique string identifier for the conversation participant as Conversation User(link takes you to an external page). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.


LastReadMessageIndextype: integerNot PII

Index of last “read” message in the Conversation(link takes you to an external page) for the Participant.


LastReadTimestamptype: stringNot PII

Timestamp of last “read” message in the Conversation(link takes you to an external page) for the Participant.

Update Conversation Participant

update-conversation-participant page anchor

Update Conversation Participant by SID

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_11
// Download the helper library from https://www.twilio.com/docs/node/install
_11
// Find your Account SID and Auth Token at twilio.com/console
_11
// and set the environment variables. See http://twil.io/secure
_11
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11
const authToken = process.env.TWILIO_AUTH_TOKEN;
_11
const client = require('twilio')(accountSid, authToken);
_11
_11
client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.participants('MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.update({dateUpdated: new Date(Date.UTC(2019, 4, 15, 13, 37, 35))})
_11
.then(participant => console.log(participant.conversationSid));

Output

_20
{
_20
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"conversation_sid": "CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"sid": "MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"identity": null,
_20
"attributes": {
_20
"role": "driver"
_20
},
_20
"messaging_binding": {
_20
"type": "sms",
_20
"address": "+15558675310",
_20
"proxy_address": "+15017122661"
_20
},
_20
"role_sid": "RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"date_created": "2015-12-16T22:18:37Z",
_20
"date_updated": "2019-05-15T13:37:35Z",
_20
"url": "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"last_read_message_index": null,
_20
"last_read_timestamp": null
_20
}

Update attributes for a Conversation Participant

update-attributes-for-a-conversation-participant page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_13
// Download the helper library from https://www.twilio.com/docs/node/install
_13
// Find your Account SID and Auth Token at twilio.com/console
_13
// and set the environment variables. See http://twil.io/secure
_13
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_13
const authToken = process.env.TWILIO_AUTH_TOKEN;
_13
const client = require('twilio')(accountSid, authToken);
_13
_13
client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_13
.participants('MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_13
.update({attributes: JSON.stringify({
_13
role: 'driver'
_13
})})
_13
.then(participant => console.log(participant.conversationSid));

Output

_20
{
_20
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"conversation_sid": "CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"sid": "MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"identity": null,
_20
"attributes": {
_20
"role": "driver"
_20
},
_20
"messaging_binding": {
_20
"type": "sms",
_20
"address": "+15558675310",
_20
"proxy_address": "+15017122661"
_20
},
_20
"role_sid": "RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"date_created": "2015-12-16T22:18:37Z",
_20
"date_updated": "2015-12-16T22:18:38Z",
_20
"url": "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_20
"last_read_message_index": null,
_20
"last_read_timestamp": null
_20
}


Delete a ConversationParticipant resource

delete-a-conversationparticipant-resource page anchor
DELETE https://conversations.twilio.com/v1/Conversations/{ConversationSid}/Participants/{Sid}

Request headers
X-Twilio-Webhook-Enabledtype: enum<STRING>Not PII

The X-Twilio-Webhook-Enabled HTTP request header

Possible values:
truefalse

URI parameters
ConversationSidtype: stringNot PII
Path Parameter

The unique ID of the Conversation(link takes you to an external page) for this participant.


Sidtype: stringNot PII
Path Parameter

A 34 character string that uniquely identifies this resource.

Delete Conversation Participant

delete-conversation-participant page anchor

Delete a Conversation Participant by SID

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_10
// Download the helper library from https://www.twilio.com/docs/node/install
_10
// Find your Account SID and Auth Token at twilio.com/console
_10
// and set the environment variables. See http://twil.io/secure
_10
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_10
const authToken = process.env.TWILIO_AUTH_TOKEN;
_10
const client = require('twilio')(accountSid, authToken);
_10
_10
client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_10
.participants('MBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_10
.remove();


Rate this page: