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.

idstringOptional

Unique ID for the injection check.

objectstringOptional

Type of object (injection_check).

createdintegerOptional

Timestamp of when the injection check was created.

checkslist of objectsOptional

The set of vectorized data.

Errors