Get a filtered list of all conversations.
get
/social/api/v1/conversations
Request
Supported Media Types
- application/json
Specify a filter to query.
Root Schema : XV1ConversationFilterInfo
Type:
object
V1 Conversation Filter Information.
Show Source
-
commonMemberID(optional):
An object's unique identifier from a long integer representation.
-
excludeClosed(optional):
boolean
Set true to exclude closed conversations. If both excludeOpen and excludeClosed are specified as true, no conversations will ever be returned.
-
excludeFullyRead(optional):
boolean
Set true to exclude conversations with no unread messages.
-
excludeMembered(optional):
boolean
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.
-
excludeMuted(optional):
boolean
Set true to exclude muted conversations. It does not make sense to set both excludeMuted and limitToMuted true.
-
excludeOneOnOne(optional):
boolean
Set true to exclude one-on-one conversations. It does not make sense to set both excludeOneOnOne and limitToOneOnOne true.
-
excludeOpen(optional):
boolean
Set true to exclude open conversations. If both excludeOpen and excludeClosed are specified as true, no conversations will ever be returned.
-
excludeWalls(optional):
boolean
Set true to exclude wall conversations. It does not make sense to set both excludeWalls and limitToWalls true.
-
includeDisabled(optional):
boolean
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.
-
includeDiscoverable(optional):
boolean
Set true to include Discoverable conversations. If includeDiscoverable is specified as false and excludeMembered is specified as true, no conversations will ever be returned.
-
includeEnabled(optional):
boolean
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.
-
includeGadgetTrackables(optional):
boolean
Specifies that if limitToGadgetID, limitToGadgetIDs or limitToGadgetGroup is specified, the directly related conversations should also be returned.
-
limitToConferenceInProgress(optional):
boolean
Limit to conversations with an active conference.
-
limitToContainedConversations(optional):
An object's unique identifier from a long integer representation.
-
limitToContainingConversations(optional):
An object's unique identifier from a long integer representation.
-
limitToGadgetExternalID(optional):
string
Limit to conversations with the specified type Gadget ExternalID. Should not be specified along with limitToGadgetID, limitToGadgetIDs or limitToGadgetGroup.
-
limitToGadgetGroup(optional):
string
Limit to conversations with the specified type Gadget Group. Should not be specified along with limitToGadgetID, limitToGadgetIDs or limitToGadgetExternalID.
-
limitToGadgetID(optional):
An object's unique identifier from a long integer representation.
-
limitToGadgetIDs(optional):
array limitToGadgetIDs
Limit to conversations with the specified type Gadget IDs. Should not be specified along with limitToGadgetID, limitToGadgetGroup or limitToGadgetExternalID.
-
limitToGroupWalls(optional):
boolean
Limit results to group wall conversations. It does not make sense to set both limitToGroupWalls and limitToUserWalls or limitToGroupWalls and limitToOneOnOne to true.
-
limitToLiked(optional):
boolean
Limit to conversations the current user has liked.
-
limitToMuted(optional):
boolean
Set true to limit to muted conversations. It does not make sense to set both excludeMuted and limitToMuted true.
-
limitToNLikes(optional):
integer(int32)
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.
-
limitToNStars(optional):
integer(int32)
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.
-
limitToOneOnOne(optional):
boolean
Limit results to one-on-one conversations. It does not make sense to set both limitToOneOnOne and limitToUserWalls or limitToOneOnOne and limitToGroupWalls to true.
-
limitToRating(optional):
integer(int32)
Deprecated, to be removed in v2.
-
limitToRatings(optional):
integer(int32)
Deprecated, to be removed in v2.
-
limitToSortGTZero(optional):
boolean
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
-
limitToSortSince(optional):
string(date)
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
-
limitToStarred(optional):
boolean
Limit to conversations the current user has starred.
-
limitToUserWalls(optional):
boolean
Limit results to user wall conversations. It does not make sense to set both limitToUserWalls and limitToGroupWalls or limitToUserWalls and limitToOneOnOne to true.
-
limitToWalls(optional):
boolean
Set true to include only wall conversations. It does not make sense to set both excludeWalls and limitToWalls true.
-
sortField(optional):
object XV1ConversationSortField
-
sortOrderDescending(optional):
boolean
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
-
Array of:
An object's unique identifier from a long integer representation.
Nested Schema : XV1ConversationSortField
Type:
Show Source
object
-
field(optional):
string
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
- application/json
200 Response
Successful operation.
Root Schema : XV1ConversationListInfo
Type:
object
V1 Conversation List Information DTO.
Show Source
-
hasMore(optional):
boolean
If true, there are more items to be returned.
-
items(optional):
array items
The conversations being returned.
-
nextURL(optional):
string(url)
Next page URL for the list. Null if this is the last page.
-
previousURL(optional):
string(url)
Previous page URL for the list. Null if this is the first page.
-
total(optional):
integer(int32)
If specified, this is the total number of available items. Null if the total is unknown.
Nested Schema : items
Type:
array
The conversations being returned.
Show Source
-
Array of:
object XV1ConversationInfo
V1 Conversation Information DTO.
Nested Schema : XV1ConversationInfo
Type:
object
V1 Conversation Information DTO.
Show Source
-
allMembershipsURL(optional):
string(url)
A URL to the hierarchical memberships of this conversation.
-
altitude(optional):
number(double)
The object's altitude.
-
archiveURL(optional):
string(url)
A URL to the archive of this conversation.
-
collectionURL(optional):
string(url)
A URL to this object's containing collection.
-
conversationURL(optional):
string(url)
A URL to this object's containing conversation.
-
createdByID(optional):
An object's unique identifier from a long integer representation.
-
createdByURL(optional):
string(url)
A URL to the user that created this object.
-
createdByUserDisplayName(optional):
string
The display name of the user that created this object.
-
createdByUserName(optional):
string
The name of the user that created this object.
-
createdDate(optional):
string(date)
The date this object was created.
-
createdDateInISO8601Format(optional):
string
The date this object was created, in ISO 8601 format.
-
dateFormatLocale(optional):
string(locale)
The locale of the appropriate date format for this conversation.
-
discoverableID(optional):
An object's unique identifier from a long integer representation.
-
displayName(optional):
string
The display name of this object.
-
externalID(optional):
string
The primary external ID of this conversation.
-
folderID(optional):
An object's unique identifier from a long integer representation.
-
folderURL(optional):
string(url)
A URL to the root folder of this conversation.
-
gadgetsURL(optional):
string(url)
A URL to the gadgets of this conversation.
-
hasMembersLocked(optional):
boolean
True if the membership of this conversation is locked.
-
hierarchicalMembersInfo(optional):
object XV1HierarchicalMembersInfo
V1 Hierarchical Members Information DTO.
-
id(optional):
An object's unique identifier from a long integer representation.
-
isDisallowGuests(optional):
boolean
True if this conversation does not allow guest users.
-
isDisallowOutsiders(optional):
boolean
True if this conversation does not allow outsider users.
-
isDiscoverable(optional):
boolean
True if this conversation is discoverable (public).
-
isExtendedAccessControl(optional):
boolean
True if this conversation uses extended access control.
-
isMuted(optional):
boolean
True if this conversation is muted for the current user.
-
isNew(optional):
boolean
True if this conversation has not been entered by the current user.
-
isRemoved(optional):
boolean
True if this message has been removed.
-
isScoped(optional):
boolean
True if the membership of this conversation is scoped by another conversation.
-
isScoping(optional):
boolean
True if this is a scoping conversation.
-
isScopingSame(optional):
boolean
True if this conversation is scoped to have the same membership as another conversation.
-
languageLocale(optional):
string(locale)
The language locale for this conversation.
-
latitude(optional):
number(double)
The object's latitude.
-
likesURL(optional):
string(url)
A URL to the likes of this conversation.
-
longitude(optional):
number(double)
The object's longitude.
-
membershipsURL(optional):
string(url)
A URL to the memberships of this conversation.
-
membersURL(optional):
string(url)
A URL to the members of this conversation.
-
messagesURL(optional):
string(url)
A URL to the messages in this conversation.
-
modifiedByID(optional):
An object's unique identifier from a long integer representation.
-
modifiedByURL(optional):
string(url)
A URL to the user that last modified this object.
-
modifiedByUserDisplayName(optional):
string
The display name of the user that last modified this object.
-
modifiedByUserName(optional):
string
The name of the user that last modified this object.
-
modifiedDate(optional):
string(date)
The date this object was last modified.
-
modifiedDateInISO8601Format(optional):
string
The date this object was last modified, in ISO 8601 format.
-
name(optional):
string
The name of this object.
-
nChats(optional):
integer(int32)
The number of chats in this conversation. (total chats less deleted chats.)
-
nFollowups(optional):
integer(int32)
The number of followups in the conversation.
-
nMarkableChats(optional):
integer(int32)
The number of chats that could be marked read. (Total markable less deleted markable. Does not depend on the current user.)
-
nOutsiders(optional):
integer(int32)
Count of the outside users.
-
nUnread(optional):
integer(int32)
The number of chats that the current user can mark read.
-
objectType(optional):
string
The type of this object.
-
originalPictureURL(optional):
string(url)
The original picture URL.
-
profilePictureURL(optional):
string(url)
The profile picture URL (150 px by 150 px).
-
propertiesURL(optional):
string(url)
A URL to the properties of this conversation.
-
removedByID(optional):
An object's unique identifier from a long integer representation.
-
removedByURL(optional):
string(url)
A URL to the user that last removed this object.
-
removedByUserDisplayName(optional):
string
The display name of the user that last removed this object.
-
removedByUserName(optional):
string
The name of the user that last removed this object.
-
removedDate(optional):
string(date)
The date this object was removed.
-
removedDateInISO8601Format(optional):
string
The date this object was removed, in ISO 8601 format.
-
role(optional):
string
The current user's role in this conversation.
-
scaledPictureURL(optional):
string(url)
The scaled picture URL (44 px by 44 px).
-
secondaryExternalIDs(optional):
array secondaryExternalIDs
The secondary external IDs for this conversation.
-
securityContextID(optional):
string
The ID of the service that dictates the security for this conversation object.
-
socialObjectURL(optional):
string(url)
A URL to this object's containing collaboration object.
-
starsURL(optional):
string(url)
A URL to the stars of this conversation.
-
state(optional):
object XV1ConversationState
-
timeZone(optional):
string(timezone)
The time zone for this conversation.
-
url(optional):
string(url)
A URL to this object.
-
userPropertiesURL(optional):
string(url)
A URL to the user properties of this conversation.
-
wallPostControl(optional):
object XV1WallPostControlEnum
Nested Schema : XV1HierarchicalMembersInfo
Type:
object
V1 Hierarchical Members Information DTO.
Show Source
-
conversationAlreadyExists(optional):
boolean
Set to true if a conversation already exists when operationType is CREATE_CONVERSATION.
-
createdFolderIDs(optional):
object XV1FolderIDListInfo
List of folder IDs.
-
ignoredMembers(optional):
object XV1IgnoredMemberListInfo
List of ignored members.
-
ignoredUsers(optional):
object XV1IgnoredUserListInfo
List of ignored users.
-
operationType(optional):
object XV1HierarchicalMembersOperationType
-
removedFolderIDs(optional):
object XV1FolderIDListInfo
List of folder IDs.
Nested Schema : secondaryExternalIDs
Type:
array
The secondary external IDs for this conversation.
Show Source
-
Array of:
string
The secondary external IDs for this conversation.
Nested Schema : XV1ConversationState
Type:
Show Source
object
-
field(optional):
string
Allowed Values:
[ "CLOSED_CHAINED", "CLOSED_DISABLED", "CLOSED_DROPPED", "CLOSED_RESOLVED", "OPEN_ACTIVE" ]
V1 Conversation States.
Nested Schema : XV1WallPostControlEnum
Type:
Show Source
object
-
field(optional):
string
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
-
hasMore(optional):
boolean
If true, there are more items to be returned.
-
ids(optional):
array ids
List of folder IDs.
-
nextURL(optional):
string(url)
Next page URL for the list. Null if this is the last page.
-
previousURL(optional):
string(url)
Previous page URL for the list. Null if this is the first page.
-
total(optional):
integer(int32)
If specified, this is the total number of available items. Null if the total is unknown.
Nested Schema : XV1IgnoredMemberListInfo
Type:
object
List of ignored members.
Show Source
-
groups(optional):
array groups
List of users.
-
hasMore(optional):
boolean
If true, there are more items to be returned.
-
nextURL(optional):
string(url)
Next page URL for the list. Null if this is the last page.
-
previousURL(optional):
string(url)
Previous page URL for the list. Null if this is the first page.
-
total(optional):
integer(int32)
If specified, this is the total number of available items. Null if the total is unknown.
-
users(optional):
array users
List of users.
Nested Schema : XV1IgnoredUserListInfo
Type:
object
List of ignored users.
Show Source
-
hasMore(optional):
boolean
If true, there are more items to be returned.
-
nextURL(optional):
string(url)
Next page URL for the list. Null if this is the last page.
-
previousURL(optional):
string(url)
Previous page URL for the list. Null if this is the first page.
-
total(optional):
integer(int32)
If specified, this is the total number of available items. Null if the total is unknown.
-
users(optional):
array users
List of users.
Nested Schema : XV1HierarchicalMembersOperationType
Type:
Show Source
object
-
field(optional):
string
Allowed Values:
[ "ASSOCIATE_CONVERSATION", "CREATE_CONVERSATION", "MOVE_FILE", "MOVE_FOLDER", "MOVE_MEMBERS", "REMOVE_MEMBERS", "REMOVE_MEMBERS_OBJECT", "SHARE_FOLDER" ]
V1 Users and Groups API Operation Types on Hierarchical Members.
Nested Schema : ids
Type:
array
List of folder IDs.
Show Source
-
Array of:
string
List of folder IDs.
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.
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", } ] }