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.
Workspace Id.
Request payload to create a new Target.
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
POST /api/v2/workspaces/{workspaceId}/target HTTP/1.1
Host:
X-Api-Key: YOUR_API_KEY
Content-Type: application/*+json
Accept: */*
Content-Length: 930
{
"connection": {
"config": {
"apiKey": "api_key",
"apiVersion": null,
"deploymentName": "gpt-4o-deployment",
"extraLlmParams": null,
"systemPrompt": null,
"url": "https://your-azure-openai-endpoint.openai.azure.com/"
},
"type": "AZURE_OPENAI"
},
"settings": {
"concurrentRequests": true,
"description": "This is an example target for demonstration purposes.",
"environment": "PROD",
"language": "en",
"name": "Example Target",
"predefinedResponses": [
{
"type": "text",
"value": "This is a predefined response."
}
],
"ragFileId": "8f149328-2c3f-4280-b367-c163043e1acd",
"ragFileNumberOfFacts": 5,
"rateLimit": 100,
"supportedModes": [
"text",
"video"
],
"systemPromptConfigurations": {
"systemPromptConfidential": "This is a confidential part of the system prompt.",
"systemPromptNotConfidential": "This is a non-confidential part of the system prompt.",
"systemPromptTools": "These are the tools available for the system prompt."
},
"targetPresetId": "c2ece0db-dd88-493a-9ac3-56ebc25996e2"
}
}
{
"connection": {
"config": null,
"type": "text"
},
"id": 1,
"scanId": 1,
"settings": {
"concurrentRequests": true,
"description": "text",
"environment": "text",
"language": "text",
"name": "text",
"predefinedResponses": [
{
"type": "text",
"value": "text"
}
],
"ragFile": {
"ragFileId": "123e4567-e89b-12d3-a456-426614174000",
"ragFileName": "text",
"ragFileUrl": "text"
},
"ragFileNumberOfFacts": 1,
"rateLimit": 1,
"supportedModes": [
"text"
],
"systemPromptConfigurations": {
"systemPromptConfidential": "text",
"systemPromptNotConfidential": "text",
"systemPromptTools": "text"
},
"targetPresetId": "123e4567-e89b-12d3-a456-426614174000",
"workerPoolId": "123e4567-e89b-12d3-a456-426614174000"
}
}
This endpoint allows you to update an existing Target within a specified Workspace. The request body should contain the updated details for the Target.
Workspace Id.
Target Id.
Request payload to update an existing Target.
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
PATCH /api/v2/workspaces/{workspaceId}/target/{targetId} HTTP/1.1
Host:
X-Api-Key: YOUR_API_KEY
Content-Type: application/*+json
Accept: */*
Content-Length: 930
{
"connection": {
"config": {
"apiKey": "api_key",
"apiVersion": null,
"deploymentName": "gpt-4o-deployment",
"extraLlmParams": null,
"systemPrompt": null,
"url": "https://your-azure-openai-endpoint.openai.azure.com/"
},
"type": "AZURE_OPENAI"
},
"settings": {
"concurrentRequests": true,
"description": "This is an example target for demonstration purposes.",
"environment": "PROD",
"language": "en",
"name": "Example Target",
"predefinedResponses": [
{
"type": "text",
"value": "This is a predefined response."
}
],
"ragFileId": "7c7f3a66-f370-4398-b02a-5740b4d71636",
"ragFileNumberOfFacts": 5,
"rateLimit": 100,
"supportedModes": [
"text",
"video"
],
"systemPromptConfigurations": {
"systemPromptConfidential": "This is a confidential part of the system prompt.",
"systemPromptNotConfidential": "This is a non-confidential part of the system prompt.",
"systemPromptTools": "These are the tools available for the system prompt."
},
"targetPresetId": "aaf143cb-36aa-4491-a9ef-a8eac89f7405"
}
}
{
"connection": {
"config": null,
"type": "text"
},
"id": 1,
"scanId": 1,
"settings": {
"concurrentRequests": true,
"description": "text",
"environment": "text",
"language": "text",
"name": "text",
"predefinedResponses": [
{
"type": "text",
"value": "text"
}
],
"ragFile": {
"ragFileId": "123e4567-e89b-12d3-a456-426614174000",
"ragFileName": "text",
"ragFileUrl": "text"
},
"ragFileNumberOfFacts": 1,
"rateLimit": 1,
"supportedModes": [
"text"
],
"systemPromptConfigurations": {
"systemPromptConfidential": "text",
"systemPromptNotConfidential": "text",
"systemPromptTools": "text"
},
"targetPresetId": "123e4567-e89b-12d3-a456-426614174000",
"workerPoolId": "123e4567-e89b-12d3-a456-426614174000"
}
}
This endpoint allows you to retrieve details of a specific Target within a specified Workspace.
Workspace Id.
Target Id.
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
GET /api/v2/workspaces/{workspaceId}/target/{targetId} HTTP/1.1
Host:
X-Api-Key: YOUR_API_KEY
Accept: */*
{
"connection": {
"config": null,
"type": "text"
},
"id": 1,
"scanId": 1,
"settings": {
"concurrentRequests": true,
"description": "text",
"environment": "text",
"language": "text",
"name": "text",
"predefinedResponses": [
{
"type": "text",
"value": "text"
}
],
"ragFile": {
"ragFileId": "123e4567-e89b-12d3-a456-426614174000",
"ragFileName": "text",
"ragFileUrl": "text"
},
"ragFileNumberOfFacts": 1,
"rateLimit": 1,
"supportedModes": [
"text"
],
"systemPromptConfigurations": {
"systemPromptConfidential": "text",
"systemPromptNotConfidential": "text",
"systemPromptTools": "text"
},
"targetPresetId": "123e4567-e89b-12d3-a456-426614174000",
"workerPoolId": "123e4567-e89b-12d3-a456-426614174000"
}
}
Delete Target from the Workspace.
Target Id.
Workspace Id.
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
DELETE /api/workspaces/{workspaceId}/target/{targetId} HTTP/1.1
Host:
X-Api-Key: YOUR_API_KEY
Accept: */*
{
"connection": {
"config": null,
"type": "text"
},
"id": 1,
"scanId": 1,
"settings": {
"concurrentRequests": true,
"description": "text",
"environment": "text",
"language": "text",
"name": "text",
"predefinedResponses": [
{
"type": "text",
"value": "text"
}
],
"ragFile": {
"ragFileId": "123e4567-e89b-12d3-a456-426614174000",
"ragFileName": "text",
"ragFileUrl": "text"
},
"ragFileNumberOfFacts": 1,
"rateLimit": 1,
"supportedModes": [
"text"
],
"systemPromptConfigurations": {
"systemPromptConfidential": "text",
"systemPromptNotConfidential": "text",
"systemPromptTools": "text"
},
"targetPresetId": "123e4567-e89b-12d3-a456-426614174000",
"workerPoolId": "123e4567-e89b-12d3-a456-426614174000"
}
}
Generate a PDF report of target overview, which includes target details and a summary of the passed and failed test cases for each latest probe run execution.
Target Id.
Workspace Id.
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
GET /api/workspaces/{workspaceId}/target/{id}/report HTTP/1.1
Host:
X-Api-Key: YOUR_API_KEY
Accept: */*
binary
Retrieves a list of available Target Types (e.g. Private With RAG), including metadata and associated probe settings.
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
GET /api/target/types HTTP/1.1
Host:
X-Api-Key: YOUR_API_KEY
Accept: */*
[
{
"details": [
{
"isRecommended": true,
"probeId": 1,
"weight": "LOW"
}
],
"id": "123e4567-e89b-12d3-a456-426614174000",
"label": "text"
}
]
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.
Workspace Id.
Target Id.
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
GET /api/workspaces/{workspaceId}/target/{targetId}/scores HTTP/1.1
Host:
X-Api-Key: YOUR_API_KEY
Accept: */*
{
"latestExecutionDate": "2025-08-31T21:20:18.785Z",
"overallScore": 1,
"scores": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"simulatedAttacks": 1,
"successfulAttacks": 1
}
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.
Workspace Id.
Target Id.
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
GET /api/workspaces/{workspaceId}/target/{targetId}/test-runs HTTP/1.1
Host:
X-Api-Key: YOUR_API_KEY
Accept: */*
[
{
"errorCount": 1,
"executionDate": "2025-08-31T21:20:18.785Z",
"failedCount": 1,
"id": 1,
"name": "text",
"passedCount": 1,
"probes": [
"text"
],
"progress": 1,
"startedBy": "text",
"status": "text",
"totalCount": 1
}
]
Last updated