Home / Docs / API Reference

API Reference

The Patchlynx REST API lets you retrieve scan results, manage repositories, and integrate findings into your own tooling.

Authentication

All API requests require a Bearer token. Generate API keys in your dashboard under Settings → API Keys.

Base URL

https://api.patchlynx.com/v1

Endpoints

GET /repos

List all connected repositories for the authenticated account.

Response

GET /repos/:id/scans

List scan history for a specific repository. Returns scans in reverse chronological order.

Parameters

ParamTypeDescription
limitintegerMax results per page. Default 20, max 100.
cursorstringPagination cursor from previous response.
verdictstringFilter: pass, warning, block.
GET /scans/:scan_id/findings

Retrieve all CVE findings for a specific scan, with reachability verdicts and call chain data.

POST /repos/:id/scans

Trigger an on-demand scan of the default branch. Returns a scan ID; poll /scans/:id for status.

Rate limits

API calls are rate-limited to 300 requests per minute per API key. The response headers include X-RateLimit-Remaining and X-RateLimit-Reset.