Skip to content

Search entities by entity type. Supports all entities available in API v3.

Request

Security
bearerAuth and apiKeyAuth
Path
apiEntityNamestringrequired

Entity type (e.g., 'case', 'account')

Bodyapplication/jsonrequired
qstring

Keyword to search in asset

filterobject(Filter)

Search filter of the asset

sortsArray of objects(Sort)

Sorting information of the asset

timeFilterobject(TimeFilter)

Time range filter of assets

pageobject(Page)

Pagination info

includeCountboolean
includeFieldsArray of strings

Fields to include in search results

excludeFieldsArray of strings

Fields to exclude from search results

impersonatorstring
userIdinteger, (int64)

Sprinklr User ID

curl -i -X POST \
  'https://api3.sprinklr.com/prod/api/v3/search/{apiEntityName}' \
  -H 'Authorization: Bearer <YOUR_Token_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Key: YOUR_API_KEY_HERE' \
  -d '{
    "q": "string",
    "filter": {
      "type": "LEAVE_MANAGEMENT_ASSET_CLASS_LOOKUP",
      "filters": [
        {}
      ],
      "key": "string",
      "values": [
        "string"
      ]
    },
    "sorts": [
      {
        "key": "string",
        "order": "string"
      }
    ],
    "timeFilter": {
      "key": "string",
      "since": 0,
      "until": 0
    },
    "page": {
      "start": 0,
      "size": 0,
      "cursor": "string"
    },
    "includeCount": true,
    "includeFields": [
      "string"
    ],
    "excludeFields": [
      "string"
    ],
    "impersonator": "string",
    "userId": 0
  }'

Responses

Success

Bodyapplication/json
resultsArray of objects

List to assets returned as part of search

cursorstring

Link to get next set of results

countinteger, (int64)
Response
{ "results": [ {} ], "cursor": "string", "count": 0 }