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.
API Key for authentication
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: api.probe.splx.ai
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": "9c045336-a70f-4406-9800-4daabc18b2bb",
"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": "3d998f43-8a31-406e-86e6-066bbf43cb81"
}
}{
"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.
API Key for authentication
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: api.probe.splx.ai
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": "8a0104f2-f8c5-413d-9416-4abcad32e0ea",
"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": "45cadc0a-564f-49ec-ba4a-bf56e33fdc2a"
}
}{
"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.
API Key for authentication
Workspace Id.
Target Id.
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
GET /api/v2/workspaces/{workspaceId}/target/{targetId} HTTP/1.1
Host: api.probe.splx.ai
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.
API Key for authentication
Target Id.
Workspace Id.
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
DELETE /api/workspaces/{workspaceId}/target/{targetId} HTTP/1.1
Host: api.probe.splx.ai
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.
API Key for authentication
Target Id.
Workspace Id.
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
GET /api/workspaces/{workspaceId}/target/{id}/report HTTP/1.1
Host: api.probe.splx.ai
X-Api-Key: YOUR_API_KEY
Accept: */*
binaryRetrieves a list of available Target Types (e.g. Private With RAG), including metadata and associated probe settings.
API Key for authentication
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
GET /api/target/types HTTP/1.1
Host: api.probe.splx.ai
X-Api-Key: YOUR_API_KEY
Accept: */*
[
{
"details": [
{
"isRecommended": true,
"probeId": 1,
"weight": "LOW"
}
],
"id": "123e4567-e89b-12d3-a456-426614174000",
"label": "text"
}
]Retrieve overall scores and category breakdown for a Target
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.
API Key for authentication
Workspace Id.
Target Id.
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
GET /api/workspaces/{workspaceId}/target/{targetId}/scores HTTP/1.1
Host: api.probe.splx.ai
X-Api-Key: YOUR_API_KEY
Accept: */*
{
"latestExecutionDate": "2025-11-13T03:43:56.221Z",
"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.
API Key for authentication
Workspace Id.
Target Id.
OK
Bad Request
Unauthorized
Forbidden
Internal Server Error
GET /api/workspaces/{workspaceId}/target/{targetId}/test-runs HTTP/1.1
Host: api.probe.splx.ai
X-Api-Key: YOUR_API_KEY
Accept: */*
[
{
"errorCount": 1,
"executionDate": "2025-11-13T03:43:56.221Z",
"failedCount": 1,
"id": 1,
"name": "text",
"passedCount": 1,
"probes": [
"text"
],
"progress": 1,
"startedBy": "text",
"status": "text",
"totalCount": 1
}
]Last updated