Get a filtered list of all conversations.

get

/social/api/v1/conversations

Request

Supported Media Types
Body ()
Specify a filter to query.
Root Schema : XV1ConversationFilterInfo
Type: object
V1 Conversation Filter Information.
Show Source
  • An object's unique identifier from a long integer representation.
  • Set true to exclude closed conversations. If both excludeOpen and excludeClosed are specified as true, no conversations will ever be returned.
  • Set true to exclude conversations with no unread messages.
  • Set true to exclude conversations this user is a direct or indirect member of. If includeDiscoverable is specified as false and excludeMembered is specified as true, no conversations will ever be returned.
  • Set true to exclude muted conversations. It does not make sense to set both excludeMuted and limitToMuted true.
  • Set true to exclude one-on-one conversations. It does not make sense to set both excludeOneOnOne and limitToOneOnOne true.
  • Set true to exclude open conversations. If both excludeOpen and excludeClosed are specified as true, no conversations will ever be returned.
  • Set true to exclude wall conversations. It does not make sense to set both excludeWalls and limitToWalls true.
  • Used with LimitToUserWalls or LimitToGroupWalls to limit returned walls to those where the owning member (user or group) is either enabled or disabled. If neither or both of these booleans are specified, all of the selected walls will be returned.
  • Set true to include Discoverable conversations. If includeDiscoverable is specified as false and excludeMembered is specified as true, no conversations will ever be returned.
  • Used with LimitToUserWalls or LimitToGroupWalls to limit returned walls to those where the owning member (user or group) is either enabled or disabled. If neither or both of these booleans are specified, all of the selected walls will be returned.
  • Specifies that if limitToGadgetID, limitToGadgetIDs or limitToGadgetGroup is specified, the directly related conversations should also be returned.
  • Limit to conversations with an active conference.
  • An object's unique identifier from a long integer representation.
  • An object's unique identifier from a long integer representation.
  • Limit to conversations with the specified type Gadget ExternalID. Should not be specified along with limitToGadgetID, limitToGadgetIDs or limitToGadgetGroup.
  • Limit to conversations with the specified type Gadget Group. Should not be specified along with limitToGadgetID, limitToGadgetIDs or limitToGadgetExternalID.
  • An object's unique identifier from a long integer representation.
  • limitToGadgetIDs
    Limit to conversations with the specified type Gadget IDs. Should not be specified along with limitToGadgetID, limitToGadgetGroup or limitToGadgetExternalID.
  • Limit results to group wall conversations. It does not make sense to set both limitToGroupWalls and limitToUserWalls or limitToGroupWalls and limitToOneOnOne to true.
  • Limit to conversations the current user has liked.
  • Set true to limit to muted conversations. It does not make sense to set both excludeMuted and limitToMuted true.
  • Limit to conversations that have been liked by n or more users.

    If null is specified, then no check is performed; otherwise, the conversation must have been liked by at least the specified number of users.

  • Limit to conversations that have been starred by n or more users.

    If null is specified, then no check is performed; otherwise the conversation must have been starred by at least the specified number of users.

  • Limit results to one-on-one conversations. It does not make sense to set both limitToOneOnOne and limitToUserWalls or limitToOneOnOne and limitToGroupWalls to true.
  • Deprecated, to be removed in v2.
  • Deprecated, to be removed in v2.
  • When sortField is specified as any of the following, this boolean, if true, will limit the result to only conversations where the sorting value is greater than zero (0).
      	CONVERSATION_IS_NEW  	CONVERSATION_N_MESSAGES  	CONVERSATION_N_MESSAGES_UNREAD  	CONVERSATION_N_ENTERED  	CONVERSATION_N_FOLLOWUPS  	CONVERSATION_ACTIVITY  	CONVERSATION_CONFERENCES  
  • When SortField is specified as any of the following, this date, if specified, will limit the result to only conversations where the sorting value is later (more recent).
      		CONVERSATION_CREATED_DATE  		CONVERSATION_LAST_POST  
  • Limit to conversations the current user has starred.
  • Limit results to user wall conversations. It does not make sense to set both limitToUserWalls and limitToGroupWalls or limitToUserWalls and limitToOneOnOne to true.
  • Set true to include only wall conversations. It does not make sense to set both excludeWalls and limitToWalls true.
  • XV1ConversationSortField
  • Sort is descending.
Nested Schema : limitToGadgetIDs
Type: array
Limit to conversations with the specified type Gadget IDs. Should not be specified along with limitToGadgetID, limitToGadgetGroup or limitToGadgetExternalID.
Show Source
  • An object's unique identifier from a long integer representation.
Nested Schema : XV1ConversationSortField
Type: object
Show Source
  • Allowed Values: [ "CONVERSATION_ACTIVITY", "CONVERSATION_CONFERENCES", "CONVERSATION_CREATED_DATE", "CONVERSATION_IS_NEW", "CONVERSATION_LAST_POST", "CONVERSATION_N_ENTERED", "CONVERSATION_N_FOLLOWUPS", "CONVERSATION_N_MESSAGES", "CONVERSATION_N_MESSAGES_UNREAD", "CONVERSATION_NAME", "CONVERSATION_STATE", "CONVERSATION_TYPE" ]
    V1 Conversation Sort Fields.

Response

Supported Media Types

200 Response

Successful operation.
Body ()
V1 Conversation List Information DTO.
Root Schema : XV1ConversationListInfo
Type: object
V1 Conversation List Information DTO.
Show Source
Nested Schema : items
Type: array
The conversations being returned.
Show Source
Nested Schema : XV1ConversationInfo
Type: object
V1 Conversation Information DTO.
Show Source
Nested Schema : XV1HierarchicalMembersInfo
Type: object
V1 Hierarchical Members Information DTO.
Show Source
Nested Schema : secondaryExternalIDs
Type: array
The secondary external IDs for this conversation.
Show Source
  • The secondary external IDs for this conversation.
Nested Schema : XV1ConversationState
Type: object
Show Source
  • Allowed Values: [ "CLOSED_CHAINED", "CLOSED_DISABLED", "CLOSED_DROPPED", "CLOSED_RESOLVED", "OPEN_ACTIVE" ]
    V1 Conversation States.
Nested Schema : XV1WallPostControlEnum
Type: object
Show Source
  • Allowed Values: [ "ANYONE_CAN_POST", "OWNER_ONLY_POSTS", "OWNER_TOP_LEVEL" ]
    V1 Wall Posting Control Enum.
Nested Schema : XV1FolderIDListInfo
Type: object
List of folder IDs.
Show Source
Nested Schema : XV1IgnoredMemberListInfo
Type: object
List of ignored members.
Show Source
Nested Schema : XV1IgnoredUserListInfo
Type: object
List of ignored users.
Show Source
Nested Schema : XV1HierarchicalMembersOperationType
Type: object
Show Source
  • Allowed Values: [ "ASSOCIATE_CONVERSATION", "CREATE_CONVERSATION", "MOVE_FILE", "MOVE_FOLDER", "MOVE_MEMBERS", "REMOVE_MEMBERS", "REMOVE_MEMBERS_OBJECT", "SHARE_FOLDER" ]
    V1 Collaboration API Operation Types on Hierarchical Members.
Nested Schema : ids
Type: array
List of folder IDs.
Show Source
Nested Schema : groups
Type: array
List of users.
Show Source
Nested Schema : users
Type: array
List of users.
Show Source
Nested Schema : users
Type: array
List of users.
Show Source

Examples

The following example shows how to get a filtered list of all conversations by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X GET -c mycookies.jar -b mycookies.jar -H 'X-Waggle-RandomID:22a8a2ca707602ae2da3512e0ca28a06' -H 'Content-Type: application/json'  https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/conversations

The following example includes a query filter parameter.

curl -X GET -c mycookies.jar -b mycookies.jar -H 'X-Waggle-RandomID:22a8a2ca707602ae2da3512e0ca28a06' -H 'Content-Type: application/json' 'https://socialnetwork06065-ustraveler1592.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/conversations?filter={"excludeClosed":true,"excludeFullyRead":true}'

Example of Response Body

The following shows an example of the response JSON document.

{
  "hasMore" : false,
  "items" : 
  [
   {
    "id": "45029",
    "name": "text",
    "objectType": "waggle/conversation",
    "createdByID": "24114",
    "createdByUserName": "dsmith@example.com",
    "createdByUserDisplayName": "Rosanna Channing",
    "createdDate": "Thu, 03 Sep 2015 14:39:22 GMT",
    "modifiedByID": "24114",
    "modifiedByUserName": "dsmith@example.com",
    "modifiedByUserDisplayName": "Rosanna Channing",
    "modifiedDate": "Thu, 03 Sep 2015 14:39:22 GMT",
    "isRemoved": "false",
    "latitude": "11",
    "longitude": "11",
    "altitude": "1",
    "externalID": "text",
    "secondaryExternalIDs":
    ["a text",    ]
    "isScoping": "false",
    "isScopingSame": "false",
    "isScoped": "false",
    "state": "OPEN_ACTIVE",
    "isDiscoverable": "false",
    "wallPostControl": "ANYONE_CAN_POST",
    "hasMembersLocked": "false",
    "isDisallowGuests": "false",
    "isDisallowOutsiders": "false",
    "nOutsiders": "0",
    "isExtendedAccessControl": "false",
    "folderID": "45034",
    "role": "HOST",
    "isMuted": "false",
    "isNew": "false",
    "nChats": "7",
    "nMarkableChats": "5",
    "nUnread": "0",
    "nFollowups": "0",
   },
   {
    "id": "689280",
    "name": "A Warm Welcome to the Team",
    "objectType": "waggle/conversation",
    "createdByID": "24114",
    "createdByUserName": "dsmith@example.com",
    "createdByUserDisplayName": "Rosanna Channing",
    "createdDate": "Thu, 22 Oct 2015 22:40:49 GMT",
    "modifiedByID": "24114",
    "modifiedByUserName": "dsmith@example.com",
    "modifiedByUserDisplayName": "Rosanna Channing",
    "modifiedDate": "Thu, 22 Oct 2015 22:40:49 GMT",
    "isRemoved": "false",
    "secondaryExternalIDs":
    "isScoping": "false",
    "isScopingSame": "false",
    "isScoped": "false",
    "state": "OPEN_ACTIVE",
    "isDiscoverable": "true",
    "wallPostControl": "ANYONE_CAN_POST",
    "hasMembersLocked": "false",
    "isDisallowGuests": "false",
    "isDisallowOutsiders": "false",
    "nOutsiders": "0",
    "isExtendedAccessControl": "false",
    "folderID": "689285",
    "role": "HOST",
    "isMuted": "false",
    "isNew": "false",
    "nChats": "8",
    "nMarkableChats": "5",
    "nUnread": "1",
    "nFollowups": "0",
   }
  ] 
}