Skip to main content
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({ apiKey: process.env.TUTELIQ_API_KEY });

const result = await tuteliq.detectUnsafe({
  text: "Hey, want to meet up after school? Don't tell your parents.",
  ageGroup: "10-12",
});

console.log(result.severity);    // "high"
console.log(result.categories);  // ["grooming"]
console.log(result.credits_used); // 1
Expected response:
{
  "safe": false,
  "severity": "high",
  "risk_score": 0.91,
  "categories": ["grooming"],
  "flags": ["secrecy", "private_meeting"],
  "summary": "Potential grooming pattern detected: solicitation of a private meeting with secrecy directive.",
  "credits_used": 1
}
What’s next? Explore the full API Reference or dive into the Node.js SDK, Python SDK, or Swift SDK for deeper integration.

Next steps