cURL
curl -X POST "https://app.cotool.ai/api/detections/generate-plan" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"intent":"string","toolNames":["string"],"detectionId":"string"}'
{ "investigationPlan": "<string>", "steps": [ { "title": "<string>", "instructions": "<string>" } ], "systemPrompt": "<string>" }
Generate an investigation plan and system prompt from a detection intent.
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
What the detection should look for and why
1
Tool names available to the detection agent (used to infer data sources)
Optional detection ID when regenerating a plan for an existing detection
Successful response
Markdown investigation plan for backwards compatibility.
Structured investigation plan steps.
Show child attributes
The assembled system prompt with intent + plan embedded
Was this page helpful?