Skip to content

Dependency-Track API ​

9 endpoints. Request and response schemas are described on the schemas page; the other tags are listed in the API index.

Endpoints ​

GET /api/v1/admin/dependency-track ​

Get the global Dependency-Track settings

Admin only. The API key is never returned.

Responses

StatusDescriptionBody
200Successapplication/json: DependencyTrackSettings
defaultErrorapplication/json: Error

PUT /api/v1/admin/dependency-track ​

Replace the global Dependency-Track settings

Admin only. Replaces the non-secret fields; api_key is write-only (omitted keeps it, empty clears it). Enabling needs a base URL and an API key. The URL must pass the outbound SSRF check. Project name and version are templates over {repo}, {name}, {version}, {artifact_id} and {format}.

Request body (required)

application/json: object

FieldTypeRequiredDescription
api_keystringnoPlaintext API key. Omit to keep the stored one, empty string clears it.
auto_pushbooleanno-
base_urlstringno-
enabledbooleanyes-
project_namestringno-
project_versionstringno-
push_vexbooleanno-

Responses

StatusDescriptionBody
200Successapplication/json: DependencyTrackSettings
400Validation failed-
defaultErrorapplication/json: Error

POST /api/v1/admin/dependency-track/test ​

Test the global Dependency-Track connection

Admin only. Calls the server with the stored URL and key and reports its version and the API key's permissions against the ones the integration needs.

Responses

StatusDescriptionBody
200Successapplication/json: DependencyTrackTest
400Not configured, unreachable or key rejected-
defaultErrorapplication/json: Error

GET /api/v1/repositories/{name}/dependency-track ​

Get a repository's Dependency-Track settings

Admin only. Returns the repository override (null when none) and the effective configuration.

Parameters

NameInTypeRequiredDescription
namepathstringyes-

Responses

StatusDescriptionBody
200Successapplication/json: DependencyTrackRepository
404Repository not found-
defaultErrorapplication/json: Error

PUT /api/v1/repositories/{name}/dependency-track ​

Set a repository's Dependency-Track override

Admin only. Empty strings and null booleans inherit the global settings.

Parameters

NameInTypeRequiredDescription
namepathstringyes-

Request body (required)

application/json: object

FieldTypeRequiredDescription
api_keystringnoPlaintext API key. Omit to keep the stored one, empty string clears it.
auto_pushbooleannoNullable.
base_urlstringno-
enabledbooleanyesfalse opts the repository out even when the global integration is on.
project_namestringno-
project_versionstringno-
push_vexbooleannoNullable.

Responses

StatusDescriptionBody
200Successapplication/json: DependencyTrackRepository
400Validation failed-
404Repository not found-
defaultErrorapplication/json: Error

DELETE /api/v1/repositories/{name}/dependency-track ​

Remove a repository's Dependency-Track override

Admin only. The repository falls back to the global settings.

Parameters

NameInTypeRequiredDescription
namepathstringyes-

Responses

StatusDescriptionBody
204Removed-
404Repository or override not found-
defaultErrorapplication/json: Error

POST /api/v1/repositories/{name}/dependency-track/push ​

Push an artifact to Dependency-Track

Admin only. Queues the push of the artifact's CycloneDX BOM and, when push_vex is on, its VEX decisions; poll /pushes for the outcome.

Parameters

NameInTypeRequiredDescription
namepathstringyes-

Request body (required)

application/json: object

FieldTypeRequiredDescription
artifact_idstringyesname@version

Responses

StatusDescriptionBody
202Queuedapplication/json: DependencyTrackPush
400Validation failed-
404Repository not found-
409Integration not enabled for the repository, or queue full-
defaultErrorapplication/json: Error

GET /api/v1/repositories/{name}/dependency-track/pushes ​

List Dependency-Track pushes

Admin only. The last push of each artifact, newest first.

Parameters

NameInTypeRequiredDescription
namepathstringyes-

Responses

StatusDescriptionBody
200Successapplication/json: object
404Repository not found-
defaultErrorapplication/json: Error

Fields of the 200 response (application/json):

FieldTypeRequiredDescription
pushesarray of DependencyTrackPushno-

POST /api/v1/repositories/{name}/dependency-track/test ​

Test a repository's Dependency-Track connection

Admin only. Uses the effective configuration.

Parameters

NameInTypeRequiredDescription
namepathstringyes-

Responses

StatusDescriptionBody
200Successapplication/json: DependencyTrackTest
400Not configured, unreachable or key rejected-
404Repository not found-
defaultErrorapplication/json: Error

Free software under the AGPL-3.0-or-later.