Query - Query - The following objects are used in multiple endpoints within the Query API. - Content Innovation Cloud - Hyland Content REST API - Current/Hyland-Content-REST-API/you1677261496252 - Current - Current

Hyland Content REST API

Platform
Content Innovation Cloud
Product
Hyland Content REST API
Release
Current
License
ft:lastPublication
2026-11-09T23:12:01.844878
ft:locale
en-US

The following objects are used in multiple endpoints within the Query API.

Request Body

Element Description Type Required Notes
searchAfter Opaque cursor token for efficient pagination. string Optional When the searchAfter element is defined, it overrides the offset element.
sort List of the fields used to sort the search results. array Optional None
trackTotalCountUpTo The maximum number of documents to count in the search results. integer Optional Setting this value to -1 removes the maximum document count restriction.
whereClauseDefinition List of the elements to be used to define the WHERE clause of an advanced query. map Optional Using the example values for whereClauseDefinition and other elements in the sample request following this table would build the resulting query: SELECT * FROM SysFile WHERE sys_title LIKE 'My Other File*' AND myts_nature != 'article' ORDER BY sys_title.

Response Body

Element Description Type Notes
count The number of documents included in the search results after accounting for the specified limit and offset values. integer None
documents List of the documents retrieved by the given query. array For more information on the child elements commonly used within a document, see Document.
limit The maximum number of documents that can be retrieved by the given query. integer Default value is 0.
offset The number of documents to skip in the search results before starting to retrieve them. integer Used for pagination support. The default value is 0.
query The HXQL query used to return search results. string Required in request bodies.
repositoryId Alphanumeric ID of the internal repository. string Default value is default.
totalCount The total number of documents that match the query. integer If the trackTotalCount element is set to false, the totalCount value is approximated.
totalCountIsTruncated True/false indicator of whether the total count of the query was truncated. Boolean None
trackTotalCount True/false indicator of whether the total count of the query was computed. Boolean None

Sample Response

{
  "count": 0,
  "documents": [
    {
      "sys_acl": [
        {
          "begin": "2025-09-15T18:11:48.487Z",
          "creator": "string",
          "end": "2025-09-15T18:11:48.487Z",
          "granted": true,
          "group": {
            "id": "string",
            "name": "string"
          },
          "permission": "string",
          "status": "PENDING",
          "user": {
            "email": "string",
            "firstName": "string",
            "id": "string",
            "lastName": "string",
            "properties": {
              "additionalProp1": {},
              "additionalProp2": {},
              "additionalProp3": {}
            }
          }
        }
      ],
      "sys_changeToken": "string",
      "sys_contributors": [
        {
          "email": "string",
          "firstName": "string",
          "id": "string",
          "lastName": "string",
          "properties": {
            "additionalProp1": {},
            "additionalProp2": {},
            "additionalProp3": {}
          }
        }
      ],
      "sys_created": "2025-09-15T18:11:48.487Z",
      "sys_creator": {
        "email": "string",
        "firstName": "string",
        "id": "string",
        "lastName": "string",
        "properties": {
          "additionalProp1": {},
          "additionalProp2": {},
          "additionalProp3": {}
        }
      },
      "sys_description": "string",
      "sys_effectiveAcl": [
        {
          "begin": "2025-09-15T18:11:48.487Z",
          "creator": "string",
          "end": "2025-09-15T18:11:48.487Z",
          "granted": true,
          "group": {
            "id": "string",
            "name": "string"
          },
          "permission": "string",
          "status": "PENDING",
          "user": {
            "email": "string",
            "firstName": "string",
            "id": "string",
            "lastName": "string",
            "properties": {
              "additionalProp1": {},
              "additionalProp2": {},
              "additionalProp3": {}
            }
          }
        }
      ],
      "sys_effectivePermissions": [
        "string"
      ],
      "sys_fulltextBinary": "string",
      "sys_id": "string",
      "sys_isFolderish": true,
      "sys_lastContributor": {
        "email": "string",
        "firstName": "string",
        "id": "string",
        "lastName": "string",
        "properties": {
          "additionalProp1": {},
          "additionalProp2": {},
          "additionalProp3": {}
        }
      },
      "sys_lifecycleState": "string",
      "sys_lockCreated": "2025-09-15T18:11:48.487Z",
      "sys_lockOwner": {
        "email": "string",
        "firstName": "string",
        "id": "string",
        "lastName": "string",
        "properties": {
          "additionalProp1": {},
          "additionalProp2": {},
          "additionalProp3": {}
        }
      },
      "sys_mixinTypes": [
        "string"
      ],
      "sys_modified": "2025-09-15T18:11:48.487Z",
      "sys_name": "string",
      "sys_parentId": "string",
      "sys_parentPath": "string",
      "sys_path": "string",
      "sys_pathDepth": 0,
      "sys_pos": 0,
      "sys_primaryType": "string",
      "sys_repository": "string",
      "sys_secpol": [
        "string"
      ],
      "sys_title": "string",
      "additionalProp1": {}
    }
  ],
  "limit": 100,
  "offset": 0,
  "query": "SELECT * FROM SysContent",
  "repositoryId": "default",
  "totalCount": 0,
  "totalCountIsTruncated": true,
  "trackTotalCount": true
}