Skip to main content
GET
/
api
/
detection-rules
/
github-repos
cURL
curl -X GET "https://app.cotool.ai/api/detection-rules/github-repos" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "repos": [
    {
      "owner": "<string>",
      "name": "<string>",
      "fullName": "<string>",
      "defaultBranch": "<string>",
      "isDetectionRepo": true
    }
  ],
  "suggestedRepo": {
    "owner": "<string>",
    "name": "<string>",
    "fullName": "<string>",
    "defaultBranch": "<string>",
    "isDetectionRepo": true
  }
}

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

Response

200 - application/json

Successful response

repos
object[]
required
suggestedRepo
object
required

Auto-suggested repo if one is clearly for detections