Skip to main content
Search documents

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Query Parameters

photoSize
enum<string>
default:nano

Rendition in which the profile pictures of the users referred to by the results are returned.

Available options:
nano,
small,
medium,
big
Example:

"nano"

Body

application/json
activity
object

Narrows the results by where their workflow stands. It takes states and requests, each a list of names, and keeps a document that is in one of the given workflow states or whose last request is of one of the given kinds.

Example:
aggs
object

Elasticsearch aggregations, passed through as sent and answered alongside the results. Two kinds are refused because they would reach past the caller's own view of the data: a global aggregation, which escapes the access filter, and anything carrying a script. A top_hits aggregation is accepted only where the endpoint runs it inside that same filter.

allowFolders
boolean

Whether folders may appear among the results. Left off, only documents come back.

assignedToGroups
(string | null)[] | null

Narrows the results to the documents whose workflow addresses any of the given groups, or a member of one of them. Membership is resolved as the search runs.

Example:
createdByGroups
(string | null)[] | null

Narrows the results to the documents created by a member of any of the given groups. Membership is resolved as the search runs, so the filter follows the groups as they stand now rather than as they stood when a document was created.

Example:
esFilters
object
esQuery
object[]

Raw Elasticsearch clauses, passed through untouched, all of which have to match. They are for a condition the curated restrictions cannot express, and they contribute to the relevance score; the non-scoring counterpart is esFilters.

exclude
string[] | null

Dotted paths to strip out of every returned document, so that a listing does not have to carry the parts of a document it will never render. They are removed from the results once fetched rather than from the search itself, which leaves the endpoints answering with a count or a file untouched by it.

Example:
fields
object[]

Restrictions on the document's own top-level fields, all of which have to match. They contribute to the relevance score, so a better match is ordered higher - which makes them the right place for the conditions the ranking of the results should follow. A condition that only narrows the set belongs in filters.document, where it costs less.

filters
object

Restrictions grouped by the part of the document they apply to, all of which have to match. Unlike fields they do not contribute to the relevance score, which makes them the cheaper choice for plain narrowing.

folder
object

Narrows the results to one folder, of the caller's own tree or of the tenant's shared one. It says where to look, not whether folders themselves may come back - that is allowFolders.

from
integer
default:0

Zero-based offset of the first result, used with size to page through them. It has to stay at zero while a scroll context is in use, and page together with limit overrides it.

Example:

0

highlight
object

Elasticsearch highlighting settings, passed through as sent - a fields object inside is what makes it act. The one addition is the field name CONTENT, which the platform expands into the full-text content fields of the metadata definitions in play; where the endpoint works without definitions it expands to nothing.

inbox
boolean

Narrows the results to what is waiting for the caller - the documents whose workflow addresses them personally, or one of their groups, or lists them among the participants whose turn it currently is. Trashed documents stay out of it.

lastAction
object[]

Restriction on last action

lastActivity
object[]

Restriction on last activity (action/request)

lastRequest
object[]

Restriction on last request

limit
integer

Page size, the other half of the page/limit way of paging. Both have to be sent, and when they are they take precedence over from and size.

Example:

20

nested_queryStrings
object[]
page
integer

Zero-based index of the page to return, used together with limit. Both have to be sent for either of them to take effect.

Example:

0

query_string
object

Full-text search across the documents, shaped like an Elasticsearch query_string but not handed over untouched: the text is escaped first, so a trailing * for a prefix and quotes for a phrase still work while field names, ranges, grouping and fuzziness are taken literally. Matching is lenient, a trailing * is tried a second time without it, and the text is matched against the main file's extension as well. A field named with a dotted path is turned into a nested query on its own.

scroll
object

Cursor for walking a result set deeper than plain offset paging reaches. It holds a point-in-time view of the index open, so the walk sees a consistent snapshot - and so the context has to be closed once the walk is over, whether or not it ran to the end.

signable
boolean

Return only documents that are signable and folders.

size
integer
default:10

Maximum number of results to return. Zero is allowed and asks for the total count and the aggregations without the documents themselves.

Required range: 0 <= x <= 100
Example:

10

sort
object
tags
object

Narrows the results by tag. Every group of tags that is filled in has to be satisfied, so the groups narrow each other rather than widening the search.

trash
boolean

Whether to look in the trash instead of among the live documents. Only what the caller trashed themselves comes back; left off, every search leaves trashed documents out.

type
string

Narrows the results to a single metadata definition, matched on the document's own definition name. To accept several of them at once, send a terms restriction on that field through filters.document instead.

Example:

"d_default"

unreadOnly
boolean

Narrows the results to the documents the caller has not opened yet.

workflow
string

Workflow type.

Example:

"wf_archive"

Response

Returns the matched documents together with the users and groups they refer to.

aggs
object

Results of the aggregations the search carried, answered as the search engine produced them and describing the whole matched set rather than this page. Absent where the search asked for none.

from
integer

Zero-based position of the first returned result within the whole result set. It is what was asked for, except where the offset was worked out by the search itself.

Example:

0

groups
object

The groups the returned documents refer to, gathered here the same way as the users. Empty where no result involves a group.

results
object[]

The page of matched documents, in the order the search produced them.

scrollId
string

Cursor to send with the next request to continue the walk through the results. Present only while a scroll context is in use, and to be closed with DELETE /search/scroll once the walk is over.

Example:

"8kZtoG59p8qvO4a5LepHCNaR7LGH7BKFIAU1rd5DAEBPi4pxxIA6NVOAd0GXKB1m"

total
integer

Number of documents the search matched in total, which is what to page through - not the number of results in this answer.

Example:

137

users
object

The users the returned documents refer to, as their owners, participants or recipients, gathered here so that a listing does not have to resolve each of them on its own. Only those the caller may see are included, so a document may name someone who is missing from here.