Skip to main content
Export 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.

Body

application/json
exporterName
string
required

Name of the exporter to run, as listed by GET /export. It decides what the export produces, which options are read and whether the result comes back in the response or as a background job.

Minimum string length: 1
Example:

"pdf"

query
object
required

Search selecting the documents to export, in the same shape the document search takes. It is always required, but not every exporter reads it - the ones driven by options instead ignore whatever is sent here.

downloadToken
string | null

Value to be handed back as a downloadToken cookie alongside the exported file. A client that starts a download it cannot observe directly uses it to learn that the response has arrived. It is set only when the export really returns a file, never on a background job.

options
object

Settings for the chosen exporter, whose meaning is entirely the exporter's own - GET /export lists the ones it reads, their types and which of them it insists on. Options it does not know are ignored rather than refused.

Example:

Response

Returns the exported file, an archive of several files, the identifier of the background job that will produce it, or a bare acknowledgement from an exporter that returns no data.