Skip to main content
Gecko’s v1 API lets you trigger scans, read scan, repository, and vulnerability data, triage findings, manage scan schedules, and receive webhook events, all scoped to the team attached to your API key.
The API is self-describing. These surfaces are always in sync with the running service:

Authentication

Create a key under Settings > API Keys (details). Keys start with gk_ and are shown in full only once, at creation. Send the key either way; both are equivalent:
  • Authorization: Bearer gk_…
  • X-API-Key: gk_…
Every response is scoped to the team the key belongs to, and every request is checked against the key owner’s current role permissions (for example scans.read to list scans, scans.run to trigger one).

Send your first request

Response envelope

Every response has one of three shapes. Single resources carry an object type discriminator:
Lists wrap their items and carry cursor pagination:
Errors are structured and self-identifying:
Every response carries an X-Request-Id header; include it when reporting issues.

Pagination

Every list endpoint is cursor-based:
  • ?limit=, page size, default 25, max 250
  • ?cursor=, opaque cursor from the previous page’s next_cursor
  • ?sort= and ?order=, sorting
Keep requesting with the returned 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 an Idempotency-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:
Postman, Insomnia, and Bruno import OpenAPI 3.1 natively; use Import > Link with the spec URL.

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

Subscribe to scan and vulnerability events with signed deliveries.

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.