Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

libraryId
string
required

The ID of the library

Query Parameters

classId
string

The ID of the document class

searchQuery
string

The text searched to filter documents

publishState
enum<string>

The type of documents to find: 'DRAFT_ONLY' to get draft versions only (if access to it), 'PUBLISHED' to get main versions only (if access to it), 'ALL' for both (the draft version if access to it else the main version). The last mode is the default one.

Available options:
PUBLISHED,
DRAFT_ONLY,
ALL
offset
string

The offset from which we should get the documents. (Default: 0, i.e. from the first one)

limit
integer<int32>
default:20

The maximum number of documents per page. (Default: 20)

searchInAttachments
boolean
default:true

Whether to search the text in the attachments too (true by default)

populateFieldOption
enum<string>[]

Optional, repeatable. Controls how much of each document is populated. When omitted, documents are fully populated (same as v1). 'SKIP_DOCUMENT_PERMISSIONS' omits document permissions; 'SKIP_HEAVYWEIGHT_FIELDS' omits the heavyweight fields block (sections, version fields, permissions, published info) for a faster response.

Available options:
SKIP_ATTACHMENTS_PERMISSIONS,
SKIP_DOCUMENT_PERMISSIONS,
SKIP_HEAVYWEIGHT_FIELDS
securityCode
string

The security code

domain
string

The G Suite domain

timezone
string

The timezone to use for datetime field searches (default: UTC). Format: 'Europe/Paris' or '+01:00'

Body

application/json
disableSorting
boolean

Enforce the fact that results won't be sorted because by default results are sorted by last modification date

filter
object
sort
object[]

Order the results of the search

Response

200 - application/json

A ApiSearchResult response

count
integer<int32>
documents
object[]
kind
string
nextPageToken
string
precision
enum<string>
Available options:
ACCURATE,
ESTIMATED_RESULT_NUMBER,
INCOMPLETE_RESULT