Skip to main content
POST
/
api
/
detections
/
generate-plan-async
cURL
curl -X POST "https://app.cotool.ai/api/detections/generate-plan-async" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"intent":"string","toolNames":["string"],"detectionId":"string"}'
{
  "jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

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

Body

application/json
intent
string
required

What the detection should look for and why

Minimum string length: 1
toolNames
string[]
required

Tool names available to the detection agent (used to infer data sources)

detectionId
string<uuid>

Optional detection ID when regenerating a plan for an existing detection

Response

200 - application/json

Successful response

jobId
string<uuid>
required

Background job ID for this investigation plan generation request