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 } }
List GitHub repositories accessible for creating detection PRs.
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
Successful response
Show child attributes
Auto-suggested repo if one is clearly for detections
Was this page helpful?