Retrieve a list of all Conversations that this Participant belongs to by identity or by address. Only one parameter should be specified.
Service Participant Conversations resource represents a list of Conversations that this Participant belongs to belonging to a specific conversation service.
Retrieve a list of all Conversations that this Participant belongs to by identity or by address. Only one parameter should be specified.
Path parameters
-
The SID of the Conversation Service the Participant Conversations resource is associated with.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^IS[0-9a-fA-F]{32}$
.
Query parameters
-
A unique string identifier for the conversation participant as Conversation User. This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
-
A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
-
How many resources to return in each list page. The default is 50, and the maximum is 50.
Minimum value is
1
, maximum value is50
. -
The page index. This value is simply for client state.
Minimum value is
0
. -
The page token. This is provided by the API.
curl \
--request GET 'https://conversations.twilio.com/v1/Services/{ChatServiceSid}/ParticipantConversations' \
--user "username:password"
{
"meta": {
"key": "conversations",
"url": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ParticipantConversations?Identity=identity&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ParticipantConversations?Identity=identity&PageSize=50&Page=0",
"previous_page_url": null
},
"conversations": []
}
{
"meta": {
"key": "conversations",
"url": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ParticipantConversations?Identity=identity&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ParticipantConversations?Identity=identity&PageSize=50&Page=0",
"previous_page_url": null
},
"conversations": [
{
"links": {
"participant": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"conversation": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"participant_sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"conversation_state": "inactive",
"conversation_timers": {
"date_closed": "2015-12-16T22:28:38Z",
"date_inactive": "2015-12-16T22:19:38Z"
},
"participant_identity": "identity",
"participant_user_sid": "USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"conversation_attributes": "{}",
"conversation_created_by": "created_by",
"conversation_unique_name": "unique_name",
"conversation_date_created": "2015-07-30T20:00:00Z",
"conversation_date_updated": "2015-07-30T20:00:00Z",
"conversation_friendly_name": "friendly_name",
"participant_messaging_binding": null
}
]
}
{
"meta": {
"key": "conversations",
"url": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ParticipantConversations?Address=%2B375255555555&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ParticipantConversations?Address=%2B375255555555&PageSize=50&Page=0",
"previous_page_url": null
},
"conversations": [
{
"links": {
"participant": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"conversation": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"participant_sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"conversation_state": "inactive",
"conversation_timers": {
"date_closed": "2015-12-16T22:28:38Z",
"date_inactive": "2015-12-16T22:19:38Z"
},
"participant_identity": null,
"participant_user_sid": null,
"conversation_attributes": "{}",
"conversation_created_by": "created_by",
"conversation_unique_name": "unique_name",
"conversation_date_created": "2015-07-30T20:00:00Z",
"conversation_date_updated": "2015-07-30T20:00:00Z",
"conversation_friendly_name": "friendly_name",
"participant_messaging_binding": {
"name": null,
"type": "sms",
"level": null,
"address": "+375255555555",
"proxy_address": "+12345678910",
"projected_address": null
}
}
]
}