S

Snyk REST API

REST discovered

Details
URL
https://api.snyk.io/rest
Docs
https://docs.snyk.io/developer-tools/snyk-api/rest-api/about-the-rest-api
Authentication
Snyk Personal Access Token (PAT) bearer discovered Get token ↗
Authorization: token <credential>

Sign in to Snyk and open Personal Access Tokens from your account settings. Create a PAT there. Snyk documents PATs as available under your profile for Enterprise users; for local CLI use you can then pass it to snyk auth <YOUR_PAT>, snyk config set api=<YOUR_PAT_OR_API_TOKEN>, or set SNYK_TOKEN.

Snyk service account token bearer discovered Get token ↗

Create a service account in Snyk under your Organization or Group as described in Service accounts. Snyk recommends service accounts for automation, including API and CI/CD usage. Use the resulting token where Snyk accepts account tokens, such as API Authorization headers or the CLI SNYK_TOKEN/snyk auth flows.