Quickstart
1. Install the SDK
npm install @matrioshkalabs/hushsafe2. Initialize with your API key
import { HushSafe } from "@matrioshkalabs/hushsafe";
const hushsafe = new HushSafe({ apiKey: process.env.HUSHSAFE_API_KEY });3. Moderate your first piece of content
const result = await hushsafe.moderate({
text: "Hello world",
});
console.log(result);
// { safe: true, score: 0.02, categories: [] }cURL alternative
curl -X POST https://api.hushsafe.com/v1/moderate/text \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Hello world"}'Python
from hushsafe import HushSafe
client = HushSafe(api_key="your-api-key")
result = client.moderate(text="Hello world")
print(result)Documentation Sections
- →Authentication (API keys, OAuth for enterprise)
- →Quickstart (Node.js, Python, cURL)
- →Core concepts (categories, confidence scores, thresholds)
- →API guides (text, image, video, bulk processing)
- →Webhooks (real-time async callbacks)
- →Rate limits and quotas
- →Error handling and retries
- →Testing in sandbox mode
- →Going to production checklist
Full documentation available at docs.matrioshkalabs.com
View API Reference →