Create a Snyk App using the Snyk API

When you have an API token and orgId, you can use the Snyk API to create your Snyk App by sending a POST request to the apps endpoint:{orgId}/apps?version={version}

Example CURL request to create a Snyk App:

curl -XPOST -H"Content-Type: application/vnd.api+json" \
 -H"Authorization: token <REPLACE_WITH_API_TOKEN>" \
 -d '{"data": { "attributes": {"name": "My Awesome Snyk App", "redirect_uris": [""], "scopes": [""], "context": "tenant"}, "type": "app"}}' \

The request body should contain the details for your new App, including the name, redirectURIs, and scopes.

The response includes details necessary to complete the integration: clientId and clientSecret. Use these values with Snyk API endpoints within your App, so consider storing them as part of the configuration of your App.

Never share the clientSecret publicly, as this is used to authenticate your App. This is also the only time you will see the clientSecret, so keep it secure and private. If you lose it or if the secret is leaked, you can rotate your App's clientSecret.

For more information see the Snyk REST API endpoint Create a new app for an organization.

Last updated

More information

Snyk privacy policy

© 2023 Snyk Limited | All product and company names and logos are trademarks of their respective owners.