Snyk
Vulnerabilities in code, dependencies, containers and IaC
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API tokenSecretRequired
- RegionOptionalIdentifier4 choices
Where to find them
The API requires the Enterprise plan (on Free and Team the token only works for the CLI and IDEs). For automations use a service account: in the organization or group settings → “Service accounts”, create it with the minimum role needed (e.g. Org Collaborator or a custom read-only role) and copy the token. A personal token also works: your account → “Account settings” → “Personal access tokens” (or the classic “Auth Token”).
Tools (3)
Snyk API request
SNYK_SEND_REQUESTAuthenticated call to the Snyk API (https://{server}.snyk.io). Any endpoint of the API is allowed. Examples (on /rest the version is required): GET /rest/orgs?version=2024-10-15, GET /rest/orgs/{org_id}/projects?version=2024-10-15&limit=100, GET /rest/orgs/{org_id}/issues?version=2024-10-15&effective_severity_level=critical,high&status=open, GET /rest/orgs/{org_id}/targets?version=2024-10-15. The v1 API is still at /v1/…. To write to /rest send the body in body_base64 with content_type application/vnd.api+json.
Required scopes
No scopes required
Input
Snyk API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Organizations
SNYK_LIST_ORGANIZATIONSOrganizations accessible with the token (id, name, slug and group). The id is the one the other routes ask for.
Required scopes
No scopes required
Input
No input parameters.
Issues of an organization
SNYK_LIST_ISSUESSecurity issues of an organization (dependencies, code, containers, IaC, secrets): title, type, severity, status, identifiers (SNYK-…, CVE) and project, with filters by severity, status and type.
Required scopes
No scopes required
Input
Issues of an organization input Name Type Description orgrequiredstringOrganization ID (SNYK_LIST_ORGANIZATIONS) severitystring[]statusstringOne of: open,resolvedDefault:"open"typestringOne of: package_vulnerability,license,code,cloud,config,custom,secretsmaxintegerDefault: 50

