cURL
curl -X GET "https://app.cotool.ai/api/detection-library/:slug" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"import requests
url = "https://app.cotool.ai/api/detection-library/{slug}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.cotool.ai/api/detection-library/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://app.cotool.ai/api/detection-library/{slug}")
.header("Authorization", "Bearer <token>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.cotool.ai/api/detection-library/{slug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"slug": "<string>",
"name": "<string>",
"summary": "<string>",
"description": "<string>",
"revision": "<string>",
"toolNames": [
"<string>"
],
"requiredLogSources": [
"<string>"
],
"mitreTechniqueIds": [
"<string>"
],
"defaultIntervalMinutes": 10,
"defaultMinSeverity": "low",
"eligible": true,
"addedDetectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"interpretation": {
"status": "ready",
"interpretation": {
"notebookRevision": "<string>",
"lanes": [
{
"id": "<string>",
"steps": [
{
"id": "<string>",
"title": "<string>",
"summary": "<string>",
"kind": "source",
"cellHashes": [
"<string>"
],
"substeps": [
{
"id": "<string>",
"title": "<string>",
"detail": "<string>",
"cellHash": "<string>"
}
]
}
]
}
]
},
"cells": [
{
"name": "<string>",
"code": "<string>",
"refs": [
"<string>"
],
"defs": [
"<string>"
],
"params": [
{
"name": "<string>",
"value": 123,
"line": 123
}
],
"lineStart": 123,
"lineEnd": 123,
"contentHash": "<string>"
}
],
"currentRevision": "<string>"
},
"missingLogSources": [
{
"id": "<string>",
"displayName": "<string>"
}
],
"missingTools": [
{
"name": "<string>",
"displayName": "<string>"
}
],
"deprecation": {
"since": "<string>",
"replacedBy": [
{
"slug": "<string>",
"name": "<string>"
}
],
"alerting": "promotion",
"signalTypes": [
"<string>"
],
"compound": {
"slug": "<string>",
"name": "<string>"
},
"reason": "<string>",
"retiresCopies": true,
"note": "<string>"
}
}{
"error": "<string>",
"issues": [
{}
]
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Detections
Read one detection library entry
Returns the entry with its notebook source and the globally cached logic summary, for review before adding. Requires tool.read.
GET
/
api
/
detection-library
/
{slug}
cURL
curl -X GET "https://app.cotool.ai/api/detection-library/:slug" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"import requests
url = "https://app.cotool.ai/api/detection-library/{slug}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.cotool.ai/api/detection-library/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://app.cotool.ai/api/detection-library/{slug}")
.header("Authorization", "Bearer <token>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.cotool.ai/api/detection-library/{slug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"slug": "<string>",
"name": "<string>",
"summary": "<string>",
"description": "<string>",
"revision": "<string>",
"toolNames": [
"<string>"
],
"requiredLogSources": [
"<string>"
],
"mitreTechniqueIds": [
"<string>"
],
"defaultIntervalMinutes": 10,
"defaultMinSeverity": "low",
"eligible": true,
"addedDetectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"interpretation": {
"status": "ready",
"interpretation": {
"notebookRevision": "<string>",
"lanes": [
{
"id": "<string>",
"steps": [
{
"id": "<string>",
"title": "<string>",
"summary": "<string>",
"kind": "source",
"cellHashes": [
"<string>"
],
"substeps": [
{
"id": "<string>",
"title": "<string>",
"detail": "<string>",
"cellHash": "<string>"
}
]
}
]
}
]
},
"cells": [
{
"name": "<string>",
"code": "<string>",
"refs": [
"<string>"
],
"defs": [
"<string>"
],
"params": [
{
"name": "<string>",
"value": 123,
"line": 123
}
],
"lineStart": 123,
"lineEnd": 123,
"contentHash": "<string>"
}
],
"currentRevision": "<string>"
},
"missingLogSources": [
{
"id": "<string>",
"displayName": "<string>"
}
],
"missingTools": [
{
"name": "<string>",
"displayName": "<string>"
}
],
"deprecation": {
"since": "<string>",
"replacedBy": [
{
"slug": "<string>",
"name": "<string>"
}
],
"alerting": "promotion",
"signalTypes": [
"<string>"
],
"compound": {
"slug": "<string>",
"name": "<string>"
},
"reason": "<string>",
"retiresCopies": true,
"note": "<string>"
}
}{
"error": "<string>",
"issues": [
{}
]
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Authorizations
Response
Successful response
Was this page helpful?
⌘I