Using the Node.js SDK
1
Install the SDK
2
Get your API key
Create an API key from the dashboard and set it as an environment variable:
3
Scan text content
The SDK automatically reads the
CENTURE_API_KEY environment variable if you don’t provide an API key explicitly.Using the REST API
You can also call the API directly without using the SDK:Response Format
All scan endpoints return the same response structure:is_safe:falsewhen prompt injection is detectedcategories: Array of detected threat types with confidence levelsrequest_id: Unique identifier for this request
See the Risk Classifications page for detailed explanations of threat categories.

