Skip to main content
POST
/
api
/
v2
/
exports
/
queries
Initiate a query export job
curl --request POST \
  --url https://mcp.zeroclick.ai/api/v2/exports/queries \
  --header 'Content-Type: application/json' \
  --header 'x-zc-api-key: <api-key>' \
  --data '
{
  "startTime": "<string>",
  "endTime": "<string>"
}
'
{
  "jobId": "<string>"
}

Authorizations

x-zc-api-key
string
header
required

Tenant API Key with developer:data:read scope, sent in the x-zc-api-key header. Create an API key from https://developer.zeroclick.ai/ by navigating to API Keys and selecting the Organization API Keys tab. This is a private API key and must be stored securely - never expose it in public-facing code or client-side applications.

Body

application/json
startTime
string
required

Start of export range (ISO 8601 timestamp)

endTime
string
required

End of export range (ISO 8601 timestamp)

Response

Export job accepted and queued for processing.

jobId
string
required
status
enum<string>
required
Available options:
processing,
completed,
failed