Queries
Required permissions
Operations
All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.
jobId of the query to retrieve
Successfully found query
Query not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
GET /api/v1/queries/{jobId} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"progress": 1,
"queryDetails": {
"initiatedAt": "2026-01-01T00:00:00.000Z",
"jobId": "text",
"query": "text"
},
"result": [
{
"description": "text",
"name": "text",
"tag": "text",
"type": "text"
}
],
"status": "IN_PROGRESS"
}All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.
Successfully submitted query
Id that can be used to request the status of the query. If you would like to re-run the query, you must re-run the query in the UI. See retrieve query results
Bad request
Conflict
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
POST /api/v1/queries HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"query": "text"
}{
"initiatedAt": "2026-01-01T00:00:00.000Z",
"jobId": "text",
"query": "text"
}Last updated
Was this helpful?