Gecko’s
v1 API lets you trigger scans, read scan, repository, and
vulnerability data, triage findings, manage scan schedules, check your
GitHub App installations, rotate your GitLab token, and receive
webhook events, all scoped to the team attached
to your API key.Authentication
Create a key under Settings > API Keys (details). Keys start withgk_ and are shown in full only once, at creation.
Send the key either way; both are equivalent:
Authorization: Bearer gk_…X-API-Key: gk_…
scans.read to list scans, scans.run to trigger one).
For CI and other shared automation, use a
service account token instead of a personal key: it
has its own role, survives people leaving the team, and sees every repository
in the team.
Send your first request
Response envelope
Every response has one of three shapes. Single resources carry anobject
type discriminator:
doc_url links to that code’s entry in Errors.
Every response carries an X-Request-Id header; include it when reporting
issues.
Pagination
Every list endpoint is cursor-based:?limit=, page size, default25, max250?cursor=, opaque cursor from the previous page’snext_cursor?sort=and?order=, sorting
next_cursor until has_more is false.
Rate limits
Limits are per key and depend on your plan:
Responses include
X-RateLimit-* headers; Gecko returns
429 Too Many Requests when a key reaches its limit. MCP traffic from
connected AI tools shares the same budget.
Idempotency
Send anIdempotency-Key header on any POST or PATCH to make retries
safe. Replays return the originally stored response with an
Idempotent-Replayed: true header.
Generate a client
There’s no hand-written SDK to install; generate types or a full client from the live spec:What you can do
Scans
List and trigger scans, fetch a scan’s vulnerabilities, discovered API
endpoints, and generated wiki.
Repositories
List repositories, update repository settings, and read per-repository
scans and vulnerabilities.
Vulnerabilities
Read findings with full evidence and triage them (confirm, dismiss,
accept risk, reopen).
Schedules
Create and manage recurring scan schedules.
Webhooks
Receive signed scan and vulnerability events, managed in Settings.
Releases
For hybrid deployments: fetch digest-pinned scanner image releases per
channel.
Need request and response details? Open any endpoint page in the sidebar;
they’re generated from the same spec the API serves.