Scan text for prompt injection
API Reference
Scan Text for Prompt Injection
POST
Scan text for prompt injection
Learn more about the risk categories returned by this endpoint in Risk Classifications.
Basic Usage
Filtering Categories
You can filter which risk categories to detect using theonly or exclude parameters. These parameters are mutually exclusive.
Confidence Filtering
Useminimum_confidence to filter results by confidence level:
Response
When content is flagged as unsafe, the response includes areason field explaining why:
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Text to scan
Only detect these categories (mutually exclusive with 'exclude')
Exclude these categories from detection (mutually exclusive with 'only')
Minimum confidence level to include in results. Default: 'medium' (include all)
Available options:
medium, high 
