๐คAPI Endpoints
Last updated
Last updated
POST /analyze/prompt
POST
/analyze/prompt
Submit a prompt text for analysis and receive the scan results
Name | Type | Description |
---|---|---|
POST /analyze/response
POST
analyze/response
Submit a prompt and its LLM response for analysis
POST /canary/add
POST
canary/add
Add canary token to prompt to later check against /canary/check
POST /canary/check
POST
canary/check
POST /add/texts
POST
/add/texts
Submit text to the vector database (embedded at index time per config file)
GET /settings
GET
/settings
Returns configuration file (excluding OpenAI API key)
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
prompt*
String
Prompt text to analyze
prompt*
String
Prompt text to analyze
response*
String
Response text to analyze
prompt*
String
Prompt to add canary to
always
Bool
Add prefix to prompt to always include canary in responses
length
int
Canary token length (default: 16)
header
String
Format string header for canary (default: <-@!-- {canary} --@!->
prompt*
String
Prompt to check for canary token
texts*
List
List of text strings
metadatas
List
List of metadata dictionaries