API Documentation
Everything you need to integrate Discuse content moderation into your application. Simple REST API, comprehensive features, and industry-leading accuracy.
Getting Started
Quick start guide to integrate Discuse API into your application.
Text Analysis
Analyze text content for spam, toxicity, sentiment, and language.
Image Analysis
Detect NSFW content and inappropriate images with high accuracy.
Document Processing
Extract text from images and PDFs with OCR, then moderate or summarize it.
API Endpoints
Quick overview of available API endpoints. All endpoints accept JSON and return JSON responses.
/api/v2/checkFull content moderation check with all enabled features.
/api/v2/demo/checkPublic demo endpoint (rate limited, no API key required).
/api/v2/scanScan files for malware and viruses.
/api/v2/ocrExtract text from images and PDFs, with optional moderation.
/api/v2/summarizeGenerate a concise summary of a document.
/api/v2/demo/ocrPublic OCR demo (rate limited, no API key; PDFs up to 20 pages).
/api/v2/demo/summarizePublic summarization demo (rate limited, no API key; PDFs up to 20 pages).
Base URL
All API requests should be made to the following base URL:
https://api.discuse.comAuthentication
Authenticate your API requests by including your API key in the request header.
X-API-Key: your_api_key_hereDon't have an API key? Get started here to create one.
Response Format
All API responses follow a consistent JSON structure:
{
"has_violations": false,
"cached": false,
"message": "Content appears safe",
"results": {
"hits": false,
"sentiment": {
"hit": false,
"toxic": 0.02,
"profanity": 0.01,
"threat": 0.00,
"insult": 0.03
},
"spam_finder": {
"is_spam": false,
"confidence": 0.05
},
"language": {
"detected": "en",
"confidence": 0.98
}
},
"processing_time_ms": 45,
"usage": {
"api_requests_used": 150,
"api_requests_limit": 10000,
"api_requests_remaining": 9850
}
}Ready to Get Started?
Follow our getting started guide to integrate content moderation in minutes.
Start Integration