Last updated 5 hours ago
Use these operations to interact with CQL queries in Cortex.
Edit entities: Your API key must have the Enable Query builder permission.
Enable Query builder
Retrieve the status and results of a CQL query
jobId of the query to retrieve
curl -L \ --url 'https://api.getcortexapp.com/api/v1/queries/{jobId}' \ --header 'Authorization: Bearer JWT'
{ "progress": 1, "queryDetails": { "initiatedAt": "2025-03-29T00:36:45.903Z", "jobId": "text", "query": "text" }, "result": [ { "description": "text", "name": "text", "tag": "text", "type": "text" } ], "status": "IN_PROGRESS" }
Run a CQL query. For more information about the types of queries you can run, take a look at our CQL Explorer in the app.
curl -L \ --request POST \ --url 'https://api.getcortexapp.com/api/v1/queries' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{ "query": "text" }'
{ "initiatedAt": "2025-03-29T00:36:45.903Z", "jobId": "text", "query": "text" }