Retrieve a list of all Conversations that this Participant belongs to by identity or by address. Only one parameter should be specified.

GET /v1/ParticipantConversations

Participant Conversations resource represents a list of Conversations that this Participant belongs to belonging to a default conversation service.

Retrieve a list of all Conversations that this Participant belongs to by identity or by address. Only one parameter should be specified.

Query parameters

  • Identity string

    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.

  • Address string

    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.

  • PageSize integer(int64)

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

    Minimum value is 1, maximum value is 50.

  • Page integer

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

    Minimum value is 0.

  • PageToken string

    The page token. This is provided by the API.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • conversations array[object]
      Hide conversations attributes Show conversations attributes object
      • account_sid string | null

        The unique ID of the Account responsible for this conversation.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

      • chat_service_sid string | null

        The unique ID of the Conversation Service this conversation belongs to.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^IS[0-9a-fA-F]{32}$.

      • participant_sid string | null

        The unique ID of the Participant.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^MB[0-9a-fA-F]{32}$.

      • participant_user_sid string | null

        The unique string that identifies the conversation participant as Conversation User.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^US[0-9a-fA-F]{32}$.

      • participant_identity string | null

        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.

      • participant_messaging_binding

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

      • conversation_sid string | null

        The unique ID of the Conversation this Participant belongs to.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^CH[0-9a-fA-F]{32}$.

      • conversation_unique_name string | null

        An application-defined string that uniquely identifies the Conversation resource.

      • conversation_friendly_name string | null

        The human-readable name of this conversation, limited to 256 characters. Optional.

      • conversation_attributes string | null

        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.

      • conversation_date_created string(date-time) | null

        The date that this conversation was created, given in ISO 8601 format.

      • conversation_date_updated string(date-time) | null

        The date that this conversation was last updated, given in ISO 8601 format.

      • conversation_created_by string | null

        Identity of the creator of this Conversation.

      • conversation_state string

        The current state of this User Conversation. One of inactive, active or closed.

        Values are inactive, active, or closed.

      • conversation_timers

        Timer date values representing state update for this conversation.

    • meta object
      Hide meta attributes Show meta attributes object
      • first_page_url string(uri)
      • key string
      • next_page_url string(uri) | null
      • page integer
      • page_size integer
      • previous_page_url string(uri) | null
      • url string(uri)
GET /v1/ParticipantConversations
curl \
 --request GET 'https://conversations.twilio.com/v1/ParticipantConversations' \
 --user "username:password"
{
  "meta": {
    "key": "conversations",
    "url": "https://conversations.twilio.com/v1/ParticipantConversations?Identity=identity&PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://conversations.twilio.com/v1/ParticipantConversations?Identity=identity&PageSize=50&Page=0",
    "previous_page_url": null
  },
  "conversations": []
}
{
  "meta": {
    "key": "conversations",
    "url": "https://conversations.twilio.com/v1/ParticipantConversations?Identity=identity&PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://conversations.twilio.com/v1/ParticipantConversations?Identity=identity&PageSize=50&Page=0",
    "previous_page_url": null
  },
  "conversations": [
    {
      "links": {
        "participant": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
        "conversation": "https://conversations.twilio.com/v1/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/ParticipantConversations?Address=%2B375255555555&PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://conversations.twilio.com/v1/ParticipantConversations?Address=%2B375255555555&PageSize=50&Page=0",
    "previous_page_url": null
  },
  "conversations": [
    {
      "links": {
        "participant": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
        "conversation": "https://conversations.twilio.com/v1/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
      }
    }
  ]
}