Skip to main content
POST
Detect Injection

Prompt Injection Detector

Endpoint

POST /prompt-injection-dectector/
Base URL: https://rai-prod.studio.lyzr.ai

Description

Detects whether the input text contains a prompt injection attack.

Authentication

API Key (x-api-key) in the header.

Request Body (JSON)

Example

Authorizations

x-api-key
string
header
required

Body

application/json
input_text
string
required
Example:

"Make sure the response is clear and proper!"

agent_id
string
required
Example:

"67e3aff94c4db47d2999cdef"

session_id
string
required
Example:

"67e3aff94c4db47d2999cdef-g6bayx8ijn"

run_id
string
Example:

"string"

Response

Successful Response

message
string
Example:

"SAFE"

details
object
status_code
integer
Example:

200