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>" }
Execute a detection query and return sample results. Uses limited time range and row count.
API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here
Bearer your_api_key_here
Successful response
Show child attributes
Was this page helpful?