InsionInsion
TypeScript

TypeScript SDK

Add Insion moderation and content management to TypeScript or JavaScript applications

The TypeScript SDK exposes a typed InsionApiClient for every Insion API operation. Create one client per application and reuse it for records, users, and appeals. Every method returns a promise and includes typed request and response objects.

Install

npm install insion

Create a client

import { InsionApiClient } from "insion";

const client = new InsionApiClient({ token: process.env.INSION_API_KEY! });

Choose the right operation

  • Use Moderate a record when your application needs a moderation decision immediately.
  • Use Ingest a record when moderation can happen asynchronously and you receive the result through webhooks.
  • Use the Users methods to maintain user profiles and query their moderation state.
  • Use Create an appeal when a suspended user asks for a review.

Start with Moderate a record, or use the sidebar to browse the full reference.

On this page