Injection

Injection detects potential prompt injection attacks.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

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

Response

Successful response.
idstring or null
Unique ID for the injection check.
objectstring or null

Type of object (injection_check).

createdinteger or null
Timestamp of when the injection check was created.
checkslist of objects or null
The set of vectorized data.

Errors