curl -X GET "https://app.cotool.ai/api/detections" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"{
"detections": [
{
"id": "<string>",
"organizationId": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"toolNames": [
"<string>"
],
"toolActionConfigs": [
{
"type": "<string>",
"allowedChannels": [
{
"id": "<string>",
"name": "<string>"
}
]
}
],
"inputs": [
{
"name": "<string>",
"description": "<string>",
"required": true
}
],
"modelAlias": "<unknown>",
"isBuiltIn": true,
"cronSchedule": "<string>",
"enabled": true,
"cliNames": [
"<string>"
],
"contextDocs": [
{
"id": "<string>",
"name": "<string>",
"mimeType": "<string>"
}
],
"tinesStoryImportId": "<string>",
"triggerSummary": [
{
"id": "<string>",
"name": "<string>",
"enabled": true
}
],
"structuredOutputSchema": {
"title": "<string>",
"description": "<string>",
"properties": {},
"items": "<unknown>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"additionalProperties": true,
"x-cotool": {}
},
"tags": [
"<string>"
],
"skills": [
{
"skillId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"skill": {
"name": "<string>",
"description": "<string>",
"requiredTools": [
"<string>"
]
},
"skillVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invocationCount30d": 123
}
],
"acceptanceCriteria": [
"<string>"
],
"detectionQuery": "<string>",
"siemType": "<string>",
"isSuggestion": true,
"lastDetectionRunAt": "<string>",
"activeSystemPrompt": {
"id": "<string>",
"prompt": "<string>",
"description": "<string>"
},
"runs30d": 123,
"runningRuns30d": 123,
"hits30d": 123,
"avgEvalScore30d": 123,
"threatModelSnippet": "<string>",
"threatModelVersion": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"isCurrent": true
}
}
],
"threatModel": {
"versionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"createdAt": "<string>",
"hasContent": true,
"content": "<string>"
}
}Retrieve all detections for the current organization.
curl -X GET "https://app.cotool.ai/api/detections" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"{
"detections": [
{
"id": "<string>",
"organizationId": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"toolNames": [
"<string>"
],
"toolActionConfigs": [
{
"type": "<string>",
"allowedChannels": [
{
"id": "<string>",
"name": "<string>"
}
]
}
],
"inputs": [
{
"name": "<string>",
"description": "<string>",
"required": true
}
],
"modelAlias": "<unknown>",
"isBuiltIn": true,
"cronSchedule": "<string>",
"enabled": true,
"cliNames": [
"<string>"
],
"contextDocs": [
{
"id": "<string>",
"name": "<string>",
"mimeType": "<string>"
}
],
"tinesStoryImportId": "<string>",
"triggerSummary": [
{
"id": "<string>",
"name": "<string>",
"enabled": true
}
],
"structuredOutputSchema": {
"title": "<string>",
"description": "<string>",
"properties": {},
"items": "<unknown>",
"required": [
"<string>"
],
"enum": [
"<string>"
],
"additionalProperties": true,
"x-cotool": {}
},
"tags": [
"<string>"
],
"skills": [
{
"skillId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"skill": {
"name": "<string>",
"description": "<string>",
"requiredTools": [
"<string>"
]
},
"skillVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invocationCount30d": 123
}
],
"acceptanceCriteria": [
"<string>"
],
"detectionQuery": "<string>",
"siemType": "<string>",
"isSuggestion": true,
"lastDetectionRunAt": "<string>",
"activeSystemPrompt": {
"id": "<string>",
"prompt": "<string>",
"description": "<string>"
},
"runs30d": 123,
"runningRuns30d": 123,
"hits30d": 123,
"avgEvalScore30d": 123,
"threatModelSnippet": "<string>",
"threatModelVersion": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"isCurrent": true
}
}
],
"threatModel": {
"versionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"createdAt": "<string>",
"hasContent": true,
"content": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.cotool.ai/llms.txt
Use this file to discover all available pages before exploring further.
API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here
Successful response
Array of detection agents
Agent configuration - can be either a built in (system-managed) or custom (user-created) agent
Show child attributes
Current threat model summary. Provided here so the Detections page can render the TM preview inline alongside Auto Detect agents without a second round-trip.
Show child attributes
Was this page helpful?