Skip to main content
Count the documents an export would cover

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.

Body

application/json
exporterName
string
required

Name of the exporter to ask, as listed by GET /export. The count is produced by the exporter itself, so it follows that exporter's own notion of what it would export.

Minimum string length: 1
Example:

"folder"

query
object
required

Search selecting the documents to count, in the same shape the document search takes. It is always required, but the exporters driven by options instead ignore whatever is sent here.

options
object

Settings for the chosen exporter, needed only by the exporters that take their selection from here rather than from query.

Example:

Response

Returns the number of documents the export would cover.

count
number

Number of items the endpoint was asked to count.

Example:

42