canonical: https://jentic.com/apis/snyk.io/snyk-api-v1

# Snyk API

The Snyk API tests open-source dependencies for known vulnerabilities and license issues and manages the Snyk organizations and projects that track them. It can test a public package by name and version for npm, pip, Maven, Gradle, sbt, and RubyGems, or test manifest and lock files such as package.json with package-lock.json, requirements.txt, and Gemfile.lock. For monitored projects it lists aggregated issues, dependency graphs, snapshot history, and ignores, and it also covers organization members, integrations, webhooks, audit logs, and reporting counts. This is the v1 API, available on Snyk Business and Enterprise plans.

## For AI agents

Test packages and manifest files for vulnerabilities, list a project's aggregated issues, add or remove ignores, pull issue and test reports, and manage Snyk orgs, members, integrations, and webhooks.

## Scope

Does not handle static code analysis results, container image scanning, or runtime threat detection. Use for open-source dependency testing and Snyk org and project management only.

## Capabilities

- Test a public package version for known issues, such as an npm package by packageName and version or a Maven artifact by groupId, artifactId, and version
- Test manifest and lock files for npm, Yarn, pip, Composer, Gradle, Maven, sbt, RubyGems, and Go by posting them in the files body
- List the aggregated issues of a monitored project and the dependency paths that introduce each one
- Ignore a project issue with a reasonType and optional expiry, or remove an ignore
- Pull reporting data: issue lists and issue, project, and test counts over a from and to window
- Create a Jira issue from a Snyk project issue and list the Jira issues already linked
- Manage organization members, user provisioning, integrations, and webhooks, and read group and org audit logs

## Use cases

### Dependency checks from a coding agent

Before a coding agent adds a dependency, it asks Snyk whether that version is safe. Through Jentic it finds the package test operation by intent, calls it with the package name and version, and reads the issues returned before editing package.json. The Snyk token stays in the developer's own Jentic One instance, not in the agent's context.

Example prompt: Call GET `/test/npm/{packageName}/{version}` with packageName 'lodash' and version '4.17.15', and list each issue's severity and title

### Manifest scanning in automation

A build script without the Snyk CLI can still test dependencies by posting manifest content. The pip test takes the requirements.txt contents in the files body, and the npm and Yarn tests take package.json with its lock file, returning the issues found. Snyk's own docs note the CLI is more accurate for many package managers, so this suits quick checks.

Example prompt: Call POST `/test/pip` with files holding the target requirements.txt contents and return any issue with high severity

### Project triage and ignores

A security engineer works through the backlog of a monitored project. The aggregated-issues operation lists the project's issues, the issue-paths operation shows how each is introduced, and the ignore operation records a decision with a reasonType such as not-vulnerable and an optional expiry, so the same issue does not keep paging the team.

Example prompt: Call POST `/org/{orgId}/project/{projectId}/aggregated-issues`, then for one issue call POST `/org/{orgId}/project/{projectId}/ignore/{issueId}` with reasonType 'not-vulnerable' and disregardIfFixable true

### Security reporting

An engineering lead wants a monthly view of open issues. The reporting endpoints return issue counts grouped by severity or fixable, project counts, and test counts for a from and to range, plus a paged list of issues, which an agent can turn into a short written summary.

Example prompt: Call POST `/reporting/counts/issues` with from '2026-10-01' and to '2026-10-31' and groupBy 'severity', then summarise the totals

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/test/npm/{packageName}/{version}` | Test a public npm package version |
| POST | `/test/pip` | Test a requirements.txt file |
| POST | `/org/{orgId}/projects` | List all projects in an org |
| POST | `/org/{orgId}/project/{projectId}/aggregated-issues` | List a project's aggregated issues |
| POST | `/org/{orgId}/project/{projectId}/ignore/{issueId}` | Ignore an issue |
| POST | `/reporting/issues/latest` | List latest issues |
| POST | `/org/{orgId}/webhooks` | Create a webhook |
| GET | `/orgs` | List the organizations a user belongs to |

## Key resources

- **Tests** — Vulnerability tests for public package versions and for manifest and lock files across ecosystems
- **Projects** — Aggregated issues, issue paths, dependency graph, snapshot history, ignores, tags, attributes, and Jira links
- **Organizations and groups** — Orgs, members, roles, provisioning, settings, entitlements, notification settings, and audit logs
- **Integrations** — SCM integrations, broker tokens, settings, cloning, and target imports
- **Reporting** — Issue lists and counts of issues, projects, and tests over time
- **Webhooks** — Create, list, retrieve, ping, and delete org webhooks

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 47 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 42 / 100
  - Developer Experience & Jentic Compatibility: 58 / 100
  - AI-Readiness & Agent Experience: 24 / 100
  - Agent Usability: 84 / 100
  - Security: 100 / 100
  - AI Discoverability: 100 / 100
- **View full report:** https://jentic.com/apis/snyk.io/snyk-api-v1/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring the Snyk API by hand means sending your token with the non-standard `token` prefix in the Authorization header, finding your orgId, and choosing between package GET tests and manifest POST tests per ecosystem. Through Jentic you install once, import Snyk from the API Directory, add the token once, and your agent calls it.
- **Permission scoping:** Snyk puts the organization id and project id in the URL path (`/org/{orgId}/project/{projectId}/...`), so a rule can pin your agent to one organization or one project. You choose the operations it may call, so destructive ones like project deletion or member removal are not included unless you add them.
- **Credential handling:** Your Snyk token is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'test a package for vulnerabilities' or 'list project issues', and Jentic returns the matching Snyk operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Snyk API (snyk-api)** — The other Snyk spec in the directory, covering the same v1 surface
- **Mend API** — Software composition analysis and license compliance from Mend
- **Jira API** — Issue tracking for remediation work
- **GitHub REST API** — Repositories, pull requests, and code where dependency fixes land

## FAQ

### What authentication does the Snyk API use?

The spec's description says to send your Snyk API token in the `Authorization` header, preceded by the word token, as in `Authorization: token API_KEY`; without it the API returns 401. The spec does not declare a formal security scheme. Through Jentic, the token is stored encrypted by your own Jentic One instance and injected at call time.

### Can I test a single package version without a manifest file?

Yes. GET operations test public packages directly, such as `/test/npm/{packageName}/{version}`, `/test/pip/{packageName}/{version}`, `/test/rubygems/{gemName}/{version}`, and `/test/maven/{groupId}/{artifactId}/{version}.` Most take an optional org query value to choose which Snyk organization the test counts against.

### What are the rate limits for the Snyk API?

The OpenAPI spec does not specify rate limits. Check Snyk's API documentation at https://apidocs.snyk.io for current limits.

### How do I check a dependency for vulnerabilities through Jentic?

Install Jentic One with `curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh`, import the Snyk API from the directory, and add your Snyk token once. Your agent searches for 'test a package for vulnerabilities' and calls GET `/test/npm/{packageName}/{version}` with the package and version. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Is there a Snyk MCP server?

You don't need an MCP server to give your agent the Snyk API. Jentic connects it directly from the API Directory: import it, add your token once, and your agent calls it. Operations are discovered on demand, so no extra tool definitions are loaded into the agent's context.

### Can I limit what my agent is allowed to do with the Snyk API?

Yes. For example, write a rule that allows only the GET /test operations and POST `/org/{orgId}/project/{projectId}/aggregated-issues` for your org id, so the agent can test packages and read one org's project issues but cannot delete projects, remove members, or change webhooks, and every call it makes is logged.

### How does this v1 API relate to the Snyk REST API?

The spec describes this as Snyk's v1 API, served under the `/api/v1` path on api.snyk.io, and notes Snyk is building a newer REST API under /rest that will eventually replace it. It is available to Business and Enterprise plan customers.
