Detect prompt injection attacks in your application using the Centure API or SDK.Documentation Index
Fetch the complete documentation index at: https://docs.centure.ai/llms.txt
Use this file to discover all available pages before exploring further.
Using the Node.js SDK
Get your API key
Create an API key from the dashboard and set it as an environment variable:
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.
Next Steps
Node.js SDK Documentation
Full SDK documentation with advanced features and MCP integration
API Reference
Complete REST API documentation and endpoint reference
Security Concepts
Learn about threat categories and risk classifications
npm Package
View the SDK on npm

