SBOM
This endpoint lets you retrieve the SBOM document of a software project. It supports the following formats:
- CycloneDX version 1.6 in JSON (set
format
tocyclonedx1.6+json
). - CycloneDX version 1.6 in XML (set
format
tocyclonedx1.6+xml
). - CycloneDX version 1.5 in JSON (set
format
tocyclonedx1.5+json
). - CycloneDX version 1.5 in XML (set
format
tocyclonedx1.5+xml
). - CycloneDX version 1.4 in JSON (set
format
tocyclonedx1.4+json
). - CycloneDX version 1.4 in XML (set
format
tocyclonedx1.4+xml
). - SPDX version 2.3 in JSON (set
format
tospdx2.3+json
).
By default it will respond with an empty JSON:API response.
Unique identifier for an organization
Unique identifier for a project
Requested API version
2021-06-04
Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
The desired SBOM format of the response.
cyclonedx1.6+json
Possible values: Returns the SBOM document of a project
Bad Request: A parameter provided as a part of the request was invalid.
Unauthorized: the request requires an authentication token.
Forbidden: the request requires an authentication token with more or different permissions.
Not Found: The resource being operated on could not be found.
Conflict: The requested operation conflicts with the current state of the resource in some way.
Internal Server Error: An error was encountered while attempting to process the request.
GET /rest/orgs/{org_id}/projects/{project_id}/sbom HTTP/1.1
Host: api.snyk.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
Last updated
Was this helpful?