Use this file to discover all available pages before exploring further.
1
Get your API key
Sign up and create an API key from the Tuteliq Dashboard. Each key is scoped to an environment (production, staging, or development) which determines your rate limits and tier.
Store your API key securely. It is displayed only once at creation time and is hashed server-side.
2
Install the SDK
npm install @tuteliq/sdk
3
Make your first call
Use detectUnsafe to analyze a piece of text for harmful content.
import { Tuteliq } from "@tuteliq/sdk";const tuteliq = new Tuteliq(process.env.TUTELIQ_API_KEY);const result = await tuteliq.detectUnsafe({ content: "Hey, want to meet up after school? Don't tell your parents.", context: { ageGroup: "10-12" },});console.log(result.severity); // "high"console.log(result.categories); // ["grooming"]console.log(result.credits_used); // 1
Use the fraud detection endpoints to analyze content for social engineering, scams, and more.
const result = await tuteliq.detectSocialEngineering({ content: "I'm from your school's IT department. I need your password to fix your account urgently.", context: { ageGroup: "10-12" },});console.log(result.detected); // trueconsole.log(result.severity); // 0.89console.log(result.categories); // [{ tag: "AUTH_IMPERSONATION", label: "Authority Impersonation", confidence: 0.92 }]console.log(result.recommended_action); // "Block and report to platform administrators"
5
Multi-endpoint analysis
Analyze content against multiple detectors in a single API call using /analyse/multi.
const result = await tuteliq.analyseMulti({ content: "Send me your bank details and I'll transfer the money. Don't tell anyone about this.", detections: ["social-engineering", "mule-recruitment", "coercive-control"], context: { ageGroup: "13-15" },});console.log(result.summary.highest_severity); // "critical"console.log(result.summary.total_credits_used); // 3console.log(result.results.length); // 3
Testing without credits? Create a sandbox API key in your Dashboard (Settings > API Keys > Environment: Sandbox). Sandbox keys run real analysis with zero credit consumption — 50 calls/day for free.