Authenticating
To use the Snyk API, you must get your API token from Snyk. You can find your token in your General Account Settings after you register with Snyk and log in.
When using the API directly, provide the API token in an Authorization
header, in the following example request, replacing API_TOKEN
with your API Token
If you are using the API through Snyk Apps, provide the access_token
in an Authorization
header preceded by bearer
as follows:
Otherwise, a 401 Unauthorized
response will be returned:
For more details and for information about using personal tokens versus service account tokens, see How to obtain and authenticate with your Snyk API token.
For additional information, see Revoking and regenerating Snyk API tokens.
Last updated