Target

Create a Target for a specific Workspace

post
/api/v2/workspaces/{workspaceId}/target

This endpoint allows you to create a new Target within a specified Workspace. The request body should contain the necessary details for the new Target.

Authorizations
X-Api-KeystringRequired

API Key for authentication

Path parameters
workspaceIdinteger · int32Required

Workspace Id.

Body

Request payload to create a new Target.

Responses
chevron-right
200

OK

application/json
idinteger · int32Required
scanIdinteger · int32Required
post
/api/v2/workspaces/{workspaceId}/target

Update a Target for a specific Workspace

patch
/api/v2/workspaces/{workspaceId}/target/{targetId}

This endpoint allows you to update an existing Target within a specified Workspace. The request body should contain the updated details for the Target.

Authorizations
X-Api-KeystringRequired

API Key for authentication

Path parameters
workspaceIdinteger · int32Required

Workspace Id.

targetIdinteger · int32Required

Target Id.

Body

Request payload to update an existing Target.

Responses
chevron-right
200

OK

application/json
idinteger · int32Required
scanIdinteger · int32Required
patch
/api/v2/workspaces/{workspaceId}/target/{targetId}

Retrieve a Target for a specific Workspace

get
/api/v2/workspaces/{workspaceId}/target/{targetId}

This endpoint allows you to retrieve details of a specific Target within a specified Workspace.

Authorizations
X-Api-KeystringRequired

API Key for authentication

Path parameters
workspaceIdinteger · int32Required

Workspace Id.

targetIdinteger · int32Required

Target Id.

Responses
chevron-right
200

OK

application/json
idinteger · int32Required
scanIdinteger · int32Required
get
/api/v2/workspaces/{workspaceId}/target/{targetId}

Delete Target from Workspace.

delete
/api/workspaces/{workspaceId}/target/{targetId}

Delete Target from the Workspace.

Authorizations
X-Api-KeystringRequired

API Key for authentication

Path parameters
targetIdinteger · int32Required

Target Id.

workspaceIdinteger · int32Required

Workspace Id.

Responses
chevron-right
200

OK

application/json
idinteger · int32Required
scanIdinteger · int32Required
delete
/api/workspaces/{workspaceId}/target/{targetId}

Get Target types.

get
/api/target/types

Retrieves a list of available Target Types (e.g. Private With RAG), including metadata and associated probe settings.

Authorizations
X-Api-KeystringRequired

API Key for authentication

Responses
chevron-right
200

OK

application/json

Defines various target configurations and their key characteristics. It helps determine which Probes are most appropriate and what Risk Levels apply, ensuring accurate analysis based on the specific setup.

idstring · uuidRequired

Target type Id.

labelstringRequired

Target type label/name.

get
/api/target/types

Retrieve overall scores and category breakdown for a Target

get
/api/workspaces/{workspaceId}/target/{targetId}/scores

Returns the overall score and scores per category for a specific Target within a Workspace. Scores are calculated based on the latest probe run results and provide insights into security vulnerabilities, compliance issues, and other risk factors.

Authorizations
X-Api-KeystringRequired

API Key for authentication

Path parameters
workspaceIdinteger · int32Required

Workspace Id.

targetIdinteger · int32Required

Target Id.

Responses
chevron-right
200

OK

application/json

Response payload containing overall score overview and detailed category breakdown from probe scan results.

simulatedAttacksinteger · int32Required

Total number of simulated attacks executed during the probe runs.

successfulAttacksinteger · int32Required

Number of attacks that successfully exploited vulnerabilities or weaknesses.

overallScoreinteger · int32Required

Current overall score calculated from all probe results. Scale: 0-100 (0 = Critical Risk, 100 = Low Risk).

latestExecutionDatestring · date-timeRequired

Timestamp of the most recent probe execution used in this overall score calculation.

get
/api/workspaces/{workspaceId}/target/{targetId}/scores

Retrieve test runs for a Target

get
/api/workspaces/{workspaceId}/target/{targetId}/test-runs

Returns a list of test runs for a specific Target within a Workspace. This includes all test runs with their execution status, progress, probes and result summaries.

Authorizations
X-Api-KeystringRequired

API Key for authentication

Path parameters
workspaceIdinteger · int32Required

Workspace Id.

targetIdinteger · int32Required

Target Id.

Responses
chevron-right
200

OK

application/json

Response payload containing execution details and status information for a test run.

idinteger · int32Required

Unique identifier for the test run execution.

namestring · nullableRequired

Name of the test run execution.

executionDatestring · date-time · nullableOptional

Timestamp when the test run was executed. Null if not yet executed.

startedBystring · nullableRequired

Email of the user who initiated this test run.

errorCountinteger · int32Optional

Number of test cases that encountered execution errors.

passedCountinteger · int32Optional

Number of test cases that passed (no risk found).

failedCountinteger · int32Optional

Number of test cases that failed (potential risk detected).

totalCountinteger · int32Optional

Total number of test cases planned for execution.

progressnumber · floatOptional

Test run progress.

statusstring · nullableRequired

Current status of the test run (e.g., 'RUNNING', 'COMPLETED', 'FAILED' and 'CANCELLED').

probesstring[] · nullableRequired

List of probe names included in this test run.

get
/api/workspaces/{workspaceId}/target/{targetId}/test-runs

Last updated

Was this helpful?