Gecko’s
v1 API lets you launch scans and read scan, repository, and
vulnerability data for the team attached to your API key.Before you call the API
Create an API key
Open API Keys in Gecko.Create a key for the team you want to query.Copy the full value when Gecko shows it. Gecko only shows the complete key at
creation time.
Send the key in the request header
Add
X-API-Key: YOUR_API_KEY to every authenticated request.Gecko API keys start with gk_.Send your first request
How access works
GET /api/v1/healthis public.- All other
v1endpoints requireX-API-Key. - Gecko scopes every response to the team attached to your API key.
GET /api/v1/scansrequires a key withscans.read.POST /api/v1/scansrequires a key withscans.run.- Scan creation also requires a configured GitLab integration for that team.
Rate limits
- Gecko applies
1000requests per hour to each API key. - Authenticated responses can include
X-RateLimit-RemainingandX-RateLimit-Reset. - Gecko returns
429 Too Many Requestswhen a key reaches its current limit.
What you can do
Scans
List scans, launch a new scan, fetch scan vulnerabilities, and download scan
artifacts.
Repositories
List repositories and fetch repository-level vulnerability data.
Vulnerabilities
Read vulnerabilities across every scan in the active team.
Artifacts
Fetch stored endpoint definitions and generated wiki output for a scan.
Need request and response details? Open any endpoint page in the API
Reference sidebar.