Injection

Injection detects potential prompt injection attacks.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
promptstring or list of stringsRequired
detectbooleanRequired
Whether to detect potential injection attacks.

Response

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

Type of object (injection_check).

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

Errors

400
Bad Request Error
403
Forbidden Error