API Endpoints
Prompt Injection
Detects whether the input text contains prompt injection.
POST
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)
Field | Type | Description |
---|---|---|
input_text | string | Text input to analyze |
agent_id | string | Unique agent identifier |
session_id | string | Unique session identifier |
run_id | string | Optional run identifier |
Example
Authorizations
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.