This section will provide a quick overview of getting started with the Snyk API. For full details please visit the Snyk API documentation.
The Snyk data model listed below is straight forward but accessing the model via the API requires a quick orientation to the APIs. To obtain the organization and project IDs you will want to complete the following steps.
Call the Snyk API to list all of the organizations associated with a user. Depending on the
API_TOKEN provided, you will receive a list of organization IDs. If you provide a service account associated with a Group, you will receive a list of organization IDs based on the number of organizations. If you provide a service account associated with an organization, you will receive a single organization ID to use in the next step.
Call the Snyk API to get a list of projects. This call takes an
API_TOKEN and an organization ID to get a list of projects.
Call the Snyk API to get an aggregated list of issues per project.
API_TOKEN authenticates the user to the Snyk API. Customers can provide a personal or a service account
API_TOKEN (Snyk Pro and Enterprise customers only). This token should be requested during the initial configuration of the Snyk Connector. For details on finding a personal token please visit the personal tokens documentation. For details on setting up service accounts please visit the service account documentation.
The Snyk API endpoint and authorization information can be found on the Snyk API documentation page. This page provides details on the endpoint and how to use your
API_TOKEN to get authorized.