S

Snyk API

REST discovered

Details
URL
https://api.snyk.io/api/v1
Docs
https://snyk.docs.apiary.io/api-description-document
Authentication
Snyk API token (legacy personal token) api_key discovered Get key ↗
Authorization: token <credential>

Sign in to Snyk and open Account settings. In the key field, click Click to show and copy the API token. You can regenerate it there with Revoke & Regenerate. Snyk also documents using this token with snyk auth <YOUR_API_TOKEN>, snyk config set api=<YOUR_PAT_OR_API_TOKEN>, or 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.