Skip to content

Send prompt.

POST
/backend/v1/prompts

Send a prompt to a provider, after being scanned with the chosen project configuration.

Authorizations

HTTPBearer
Type
HTTP (bearer)

Request Body

application/json
JSON
{
  
"chatId": "string",
  
"externalMetadata": {
  
},
  
"input": "string",
  
"verbose": false
}

Responses

Successful Response

application/json
JSON
{
  
"id": "string",
  
"result": {
  
  
"files": [
  
  
  
{
  
  
  
  
"contentType": "string",
  
  
  
  
"data": "string",
  
  
  
  
"id": "string",
  
  
  
  
"isBase64": true,
  
  
  
  
"name": "string"
  
  
  
}
  
  
],
  
  
"outcome": "string",
  
  
"providerResult": {
  
  
  
"data": "string",
  
  
  
"receivedDate": "string",
  
  
  
"sentDate": "string",
  
  
  
"statusCode": 0
  
  
},
  
  
"response": "string",
  
  
"scannerResults": [
  
  
  
{
  
  
  
  
"completedDate": "string",
  
  
  
  
"customConfig": false,
  
  
  
  
"data": {
  
  
  
  
  
"matches": [
  
  
  
  
  
  
[
  
  
  
  
  
  
]
  
  
  
  
  
],
  
  
  
  
  
"type": "regex"
  
  
  
  
},
  
  
  
  
"message": "string",
  
  
  
  
"outcome": "string",
  
  
  
  
"scanDirection": "string",
  
  
  
  
"scannerId": "string",
  
  
  
  
"scannerVersionMeta": {
  
  
  
  
  
"createdAt": "string",
  
  
  
  
  
"createdBy": "string",
  
  
  
  
  
"description": "string",
  
  
  
  
  
"direction": "string",
  
  
  
  
  
"f1Score": 0,
  
  
  
  
  
"id": "string",
  
  
  
  
  
"latestDatasetResult": {
  
  
  
  
  
  
"datasetRunId": "string",
  
  
  
  
  
  
"f1Score": 0
  
  
  
  
  
},
  
  
  
  
  
"name": "string",
  
  
  
  
  
"published": true
  
  
  
  
},
  
  
  
  
"startedDate": "string"
  
  
  
}
  
  
]
  
},
  
"scanners": {
  
  
"configs": {
  
  
  
"additionalProperties": {
  
  
  
  
"blocking": true,
  
  
  
  
"enabled": true,
  
  
  
  
"flagMessage": "string",
  
  
  
  
"force": true,
  
  
  
  
"id": "string",
  
  
  
  
"mode": "string",
  
  
  
  
"version": "string"
  
  
  
}
  
  
},
  
  
"forcedScanners": {
  
  
  
"additionalProperties": {
  
  
  
  
"availability": {
  
  
  
  
  
"global": false,
  
  
  
  
  
"projectIds": [
  
  
  
  
  
  
[
  
  
  
  
  
  
]
  
  
  
  
  
]
  
  
  
  
},
  
  
  
  
"config": {
  
  
  
  
  
"pattern": "string",
  
  
  
  
  
"type": "regex"
  
  
  
  
},
  
  
  
  
"direction": "request",
  
  
  
  
"id": "string",
  
  
  
  
"name": "string",
  
  
  
  
"packageId": "string",
  
  
  
  
"projectId": "string",
  
  
  
  
"scannerTemplateId": "string",
  
  
  
  
"source": {
  
  
  
  
  
"type": "internal"
  
  
  
  
},
  
  
  
  
"tags": [
  
  
  
  
  
[
  
  
  
  
  
]
  
  
  
  
],
  
  
  
  
"vendored": true,
  
  
  
  
"versionMeta": {
  
  
  
  
  
"createdAt": "string",
  
  
  
  
  
"createdBy": "string",
  
  
  
  
  
"description": "string",
  
  
  
  
  
"direction": "string",
  
  
  
  
  
"f1Score": 0,
  
  
  
  
  
"id": "string",
  
  
  
  
  
"latestDatasetResult": {
  
  
  
  
  
  
"datasetRunId": "string",
  
  
  
  
  
  
"f1Score": 0
  
  
  
  
  
},
  
  
  
  
  
"name": "string",
  
  
  
  
  
"published": true
  
  
  
  
}
  
  
  
}
  
  
},
  
  
"scanners": {
  
  
  
"additionalProperties": {
  
  
  
  
"availability": {
  
  
  
  
  
"global": false,
  
  
  
  
  
"projectIds": [
  
  
  
  
  
  
[
  
  
  
  
  
  
]
  
  
  
  
  
]
  
  
  
  
},
  
  
  
  
"config": {
  
  
  
  
  
"pattern": "string",
  
  
  
  
  
"type": "regex"
  
  
  
  
},
  
  
  
  
"direction": "request",
  
  
  
  
"id": "string",
  
  
  
  
"name": "string",
  
  
  
  
"packageId": "string",
  
  
  
  
"projectId": "string",
  
  
  
  
"scannerTemplateId": "string",
  
  
  
  
"source": {
  
  
  
  
  
"type": "internal"
  
  
  
  
},
  
  
  
  
"tags": [
  
  
  
  
  
[
  
  
  
  
  
]
  
  
  
  
],
  
  
  
  
"vendored": true,
  
  
  
  
"versionMeta": {
  
  
  
  
  
"createdAt": "string",
  
  
  
  
  
"createdBy": "string",
  
  
  
  
  
"description": "string",
  
  
  
  
  
"direction": "string",
  
  
  
  
  
"f1Score": 0,
  
  
  
  
  
"id": "string",
  
  
  
  
  
"latestDatasetResult": {
  
  
  
  
  
  
"datasetRunId": "string",
  
  
  
  
  
  
"f1Score": 0
  
  
  
  
  
},
  
  
  
  
  
"name": "string",
  
  
  
  
  
"published": true
  
  
  
  
}
  
  
  
}
  
  
}
  
}
}

Playground

Server
Authorization
Body

Samples

Powered by VitePress OpenAPI

Updated at: