Search Rooms

Search for rooms, querying name, description, and specified keywords.

post
Query parameters
skipanyoptional

No. of results to skip.

limitanyoptional

Max no. of results to return. If no value is provided, 50 is the default. Must be a positive integer and must not exceed 100

Header parameters
sessionTokenanyrequired

Session authentication token.

Body
all ofoptional

Room Query Object. Used to specify the parameters for room search.

Room Query Object. Used to specify the parameters for room search.

Responses
curl -L \
  --request POST \
  --url 'yourpodURL.symphony.com/pod/v3/room/search' \
  --header 'Content-Type: application/json' \
  --data '{
    "query": "automobile",
    "labels": [
      "industry"
    ],
    "active": true,
    "private": true,
    "owner": {
      "id": 7215545058313
    },
    "creator": {
      "id": 7215545058313
    },
    "member": {
      "id": 7215545058313
    },
    "sortOrder": "RELEVANCE",
    "subType": "EMAIL"
  }'
{
  "count": 2,
  "skip": 0,
  "limit": 10,
  "query": {
    "query": "automobile",
    "labels": [
      "industry"
    ],
    "active": true,
    "private": true,
    "owner": {
      "id": 7215545058313
    },
    "creator": {
      "id": 7215545058313
    },
    "member": {
      "id": 7215545058313
    },
    "sortOrder": "RELEVANCE",
    "subType": "EMAIL"
  },
  "rooms": [
    {
      "roomAttributes": {
        "name": "Automobile Industry Room",
        "description": "Room to discuss car companies",
        "membersCanInvite": true,
        "readOnly": false,
        "copyProtected": false,
        "crossPod": false,
        "viewHistory": false,
        "public": false,
        "multiLateralRoom": false
      },
      "roomSystemInfo": {
        "id": "tzwvAZIdDMG3ZPRxv+xsgH///qr+JJkWdA==",
        "creationDate": 1464615003895,
        "createdByUserId": 7696581411197,
        "active": true
      }
    },
    {
      "roomAttributes": {
        "name": "Tesla Room",
        "keywords": [
          {
            "key": "industry",
            "value": "automobile"
          }
        ],
        "description": "Discussions on TSLA",
        "membersCanInvite": true,
        "readOnly": false,
        "copyProtected": false,
        "crossPod": false,
        "viewHistory": false,
        "public": false,
        "multiLateralRoom": false
      },
      "roomSystemInfo": {
        "id": "o6UkQ1TEmU0Tf/DHUlZrCH///qr+JQowdA==",
        "creationDate": 1464614974947,
        "createdByUserId": 7696581411197,
        "active": true
      }
    }
  ],
  "facetedMatchCount": [
    {
      "facet": "industry",
      "count": 1
    }
  ]
}

📘 Room Search Scope

Room search is performed on the set of:

  • All rooms that the calling user is a member of (private or public, active or inactive)

  • All active public rooms

  • Private rooms that the calling user is not a member of, where the room is set to be visible in search, is active and the room does not contain any user with whom the calling user has an information barrier

Note: visit Overview for an overview of streams.

The description is only searched for hashtags and cashtags containing the search query. For example if query were foo and the description of a room contained "foo", this room would not be returned in the search results; however, if the description contained "#foo", this room would be returned in the search results.

Last updated

Was this helpful?