Project issue paths API endpoints

The following provides information in addition to the information in the API Reference for the endpoints List all project issue paths and List all project snapshot issue paths.

The paths endpoints provide details of the paths through which an issue has been introduced.

Requests to the paths endpoint are GET requests. The endpoints are available at the following URLs:

  • https://api.snyk.io/v1/org/<orgId>/project/<projectId>/issue/<issueId>/paths (List all project issue paths). This returns the paths for an issue in the most recent test of the Project.

  • https://api.snyk.io/v1/org/<orgId>/project/<projectId>/history/<snapshotId>/issue/<issueId>/paths (List all project snapshot issue paths). This returns the paths for an issue in a specific test of the Project.

Both of the paths endpoints can take a query string allowing for pagination, for example,?page=2&perPage=500.

By default, the first page of 100 results is returned. Up to 1,000 results can be requested per page.

The response has the following structure:

{
    "snapshotId": "6d5813be-7e6d-4ab8-80c2-1e3e2a454553",
    "paths": [...],
    "total": 193,
    "links": {
        "prev": "<https://snyk.io/>...",
        "next": "<https://snyk.io/>...",
        "last": "<https://snyk.io/>..."
    }
}
  • snapshotId is the ID of the Project snapshot from which the paths were returned.

  • total is the total number of paths for the issue in the snapshot.

  • links provides convenience links for navigating between pages of the response. links.next and links.prev are provided only if such a page exists. For example, when you retrieve the las