Injection

POST
/injection
Injection detects potential prompt injection attacks.

Request

This endpoint expects an object.
promptstringRequired
The prompt to check for injection attack.
detectbooleanRequired
Whether to detect potential injection attacks.

Response

This endpoint returns an object.
idstringOptional
Unique ID for the chat completion.
objectstringOptional
Type of object (chat completion).
createdintegerOptional
Timestamp of when the chat completion was created.
checkslist of objectsOptional
The set of vectorized data.

Errors