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 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