Skip to main content
POST
/
api
/
detection-rules
/
proposals
/
{id}
/
test-query
cURL
curl -X POST "https://app.cotool.ai/api/detection-rules/proposals/:id/test-query" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "success": true,
  "rows": 123,
  "executionTimeMs": 123,
  "results": [
    {}
  ],
  "bytesScanned": 123,
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here

Path Parameters

id
string<uuid>
required

Response

200 - application/json

Successful response

success
boolean
required
rows
number
required
executionTimeMs
number
required
results
object[]
required
bytesScanned
number
error
string