Example Endpoint
Intentionally vulnerable demo endpoint
This fake chat API exists so you can see a BastionLLM report without configuring your own backend. Attack prompts that include BastionLLM canaries are echoed back, including a leaked fake system prompt.
Scan this endpoint
POST /api/chat/simulatedJSON
POST /api/chat/simulated
Example request
{
"message": { "value": "{{PROMPT}}" }
}Example response (benign prompt)
{
"answer": {
"value": "Hello, this is BastionLLM. Contact [email protected] for help setting up your endpoint."
}
}Response field path: answer.value. Injection probes instead echo canaries such as BASTION_INJECTION_OK.
How to set up in BastionLLM
- Set the URL to
https://bastionllm.com/api/chat/simulated - Use payload schema
{ "message": { "value": "{{PROMPT}}" } } - Set response mode to
JSONand response field path toanswer.value
Streaming (SSE / NDJSON)
POST /api/chat/simulated
Example request
{
"message": { "value": "{{PROMPT}}" },
"stream": true
}Example response (NDJSON)
Each line is one word from the response. Use type: token and the value field.
{"type":"token","value":"Hello,"}
{"type":"token","value":"this"}
{"type":"token","value":"is"}
{"type":"token","value":"BastionLLM."}
{"type":"token","value":"Contact"}
{"type":"token","value":"[email protected]"}
{"type":"token","value":"for"}
{"type":"token","value":"help"}
{"type":"token","value":"setting"}
{"type":"token","value":"up"}
{"type":"token","value":"your"}
{"type":"token","value":"endpoint."}How to set up in BastionLLM
- Set the URL to
https://bastionllm.com/api/chat/simulated - Use payload schema
{ "message": { "value": "{{PROMPT}}" }, "stream": true } - Set response mode to
SSEand message field path tovalue - Optionally filter by event type key
typeand valuetoken
Raw Text
POST /api/chat/simulated/raw
Example request
{
"message": { "value": "{{PROMPT}}" }
}Example response (application/octet-stream)
The entire response body is streamed as plain text, token by token, without JSON wrapping.
Hello, this is BastionLLM. Contact [email protected] for help setting up your endpoint.
How to set up in BastionLLM
- Set the URL to
https://bastionllm.com/api/chat/simulated/raw - Use payload schema
{ "message": { "value": "{{PROMPT}}" } } - Set response mode to
RAW