Last updated 1 month ago
Use these operations to interact with 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
GET /api/v1/queries/{jobId} HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Accept: */*
Successfully found query
{ "progress": 1, "queryDetails": { "initiatedAt": "2025-04-29T12:21:22.348Z", "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.
POST /api/v1/queries HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 16 { "query": "text" }
Successfully submitted query
{ "initiatedAt": "2025-04-29T12:21:22.348Z", "jobId": "text", "query": "text" }