Skip to main content
POST

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Path Parameters

documentId
string
required

Document identifier (either document ID or identifier slug)

queryId
string
required

The saved query to run: its queryIdentifierMapKey, or its query presentation id, from GET /v1/documents/{documentId}/queries.

Minimum string length: 1

Query Parameters

userId
string<uuid>

Organization API key required. The membership ID of the user to act as.

Body

application/json
filters
object

Filters to apply for this run, keyed by field name (e.g. orders.status). Each replaces the saved filter on the same field and the saved query is not modified. A filter that cannot be applied fails the request.

Example:
formatResults
boolean
default:true

Whether to format result values (e.g., apply number formatting).

resultType
enum<string>

Format of the result document. For csv and xlsx results formats, the document's Download setting must be enabled.

Available options:
csv,
xlsx,
json
Example:

"json"

Response

The saved query ran; the body is its result document.

{key}