Project API

API to manage projects, versions, and documents in Ketryx

Ketryx exposes an API to manage projects programmatically. There is also a formal OpenAPI specification defining this API, and a separate page about authentication and API keys.

Projects

Get a list of projects

get

Gets a list of Ketryx projects in the current organization. Only non-deleted (active) projects are returned.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
namestringOptional

Project name to filter for

startAtintegerOptional

Start listing projects at the given index. Defaults to 0.

maxResultsintegerOptional

Maximum number of projects to return. Defaults to no limit.

Responses
200

OK

application/json
get
/projects

Create a new project

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequired

Name of the new project

Example: My project
Responses
200

OK

application/json
post
/projects

Project

Get the project settings

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
projectIdstringRequired
Responses
200

OK

application/json
get
/projects/{projectId}

Change the project settings

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
projectIdstringRequired
Body
settingsobjectOptional

Object with advanced setting names as keys and a JSON value for each setting

Example: { "statusMapping": { "Backlog": "OPEN", "Done": "RESOLVED" } }
Responses
200

OK

application/json
post
/projects/{projectId}

Delete a project

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
projectIdstringRequired
Responses
delete
/projects/{projectId}

No content

Versions

Get a list of versions

get

Gets a list of versions in the given project.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
projectIdstringRequired
Responses
200

OK

application/json
get
/projects/{projectId}/versions

Create a new version

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
projectIdstringRequired
Body
namestringRequiredExample: My project
Responses
200

OK

application/json
post
/projects/{projectId}/versions

Version

Change the version settings

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
projectIdstringRequired
versionIdstringRequired
Body
namestringOptional
Responses
200

OK

application/json
post
/projects/{projectId}/versions/{versionId}

Delete a version

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
projectIdstringRequired
versionIdstringRequired
Responses
delete
/projects/{projectId}/versions/{versionId}

No content

Generated documents

Use this API to generate and download the SBOM document for a given project. Optionally, a certain version ID can be specified:

  • If no versionId is specified, the document for the "current draft" state (corresponding to the main analyzed branch, not specific to a certain version) is downloaded.

  • If a versionId is specified, the document is generated for the given version (and its corresponding release ref).

By default, the response is an Excel file in binary form (xslx). Optionally, a format parameter with value cyclonedx can be used to generate and download the SBOM document in CycloneDX JSON format (specifically, CyclonedX version 1.5).

Generate and retrieve the SBOM document

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
projectIdstringRequired

Ketryx project ID. This is required.

Query parameters
versionIdstringOptional

Ketryx version ID. If not specified, defaults to using the "current draft" state.

formatstring · enumOptional

SBOM format to return. Defaults to "xslx".

Example: cyclonedxPossible values:
Responses
200

File contents in binary format

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Responsestring · binary
get
/projects/{projectId}/generated-documents/sbom

Last updated

Was this helpful?