Obtaining your Snyk API token
Your Snyk API token is required for the Code Agent component setup, and it is used in the
-e SNYK_TOKENparameter. The Snyk API token is associated with your Snyk Account and not with a specific Organization. This token is used to authenticate the Code Agent component with your Snyk Account.
To obtain your Snyk API token via the Web UI:
1. On the Web UI, Select Account settings from the drop down at the bottom of the left navigation.
2. On the Account Settings page > General > Auth Token section, click inside the KEY box to display your API token:
Settings page, display API token
3. Once your API token is displayed in the KEY box, copy and save it in a secure location for future use:
Copy API token