Retrieve the App Org IDs
Users may connect with a single organization., or a single group. Most of Snyk's API endpoints require an orgid in the path, which is used for authorizing the action being performed. For more information see Integrating Apps with Snyk.
To retrieve the orgid that is used by your App, send a GET request to the orgs endpoint:
https://api.snyk.io/rest/orgs?version={version}
Snyk deprecated the /rest/apps/{clientId}/orgs?version={version} endpoint as of 2022-03-02, and sunset it after 2022-04-03.
The current version can be found in the Snyk API documentation.
Snyk recommends you store this value and associate it with the user's details.
Export as PDF
Copy link
Edit on GitHub