API Documentation

Complete documentation for integrating the Lexiwall content moderation API into your application

Getting Started

Learn how to integrate the Lexiwall moderation API in minutes

Overview

Lexiwall is a content moderation API that uses artificial intelligence to analyze and filter text. It allows you to create custom moderation policies with banned word lists, regex patterns, and AI rules.

Quick Start Guide

  1. Create an account on Lexiwall and create a workspace
  2. Generate an API key in your workspace settings
  3. Create a moderation policy with custom rules
  4. Call the API with your API key and your policy code
  5. Process the response to accept or reject the content

Authentication

All requests must include your API key in the Authorization header. You can also provide the API key in the request body.

curl -X POST https://lexiwall.com/api/moderation \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "policyCode": "your_policy_code",
    "text": "Hello world"
  }'

Endpoint

POST https://lexiwall.com/api/moderation