Spam Detection
Analyze text to determine if it is spam, promotional abuse, or malicious content.
/api/v1/ai/spam-detection
Automated content moderation, toxicity scoring, and LLM prompt injection defense for enterprise applications.
{
"text": "Congratulations!!! You won a $500 gift card. Claim now at bit.ly/free-gift before it expires"
}
{
"data": {
"result": {
"is_spam": true,
"spam_score": 0.97,
"spam_category": "phishing",
"reason": "Unsolicited prize claim with a shortened link and urgency pressure."
}
}
}
1 to 2 credits per call. Each one has its own page with parameters, code and examples.
Analyze text to determine if it is spam, promotional abuse, or malicious content.
/api/v1/ai/spam-detection
Automatically detect and securely scrub Personally Identifiable Information (PII) from text.
/api/v1/ai/pii-redaction
RSFlowHub Safety & Moderation APIs provide mission-critical defense layers for user-generated content and LLM application inputs. With real-time detection of prompt injection attacks, profanity, harassment, and compliance violations, these endpoints safeguard enterprise brands and digital platforms.
X-API-Key headerA real request to POST /api/v1/ai/spam-detection. Every API in this category works the same way.
curl -X POST "https://rsflowhub.com/api/v1/ai/spam-detection" \
-H "X-API-Key: rfh_your_api_key" \
-H "Content-Type: application/json" \
-d '{"text":"Congratulations!!! You won a $500 gift card. Claim now at bit.ly/free-gift before it expires"}'
<?php
$response = (new \GuzzleHttp\Client())->post('https://rsflowhub.com/api/v1/ai/spam-detection', [
'headers' => ['X-API-Key' => 'rfh_your_api_key'],
'json' => json_decode('{"text":"Congratulations!!! You won a $500 gift card. Claim now at bit.ly/free-gift before it expires"}', true),
]);
print_r(json_decode($response->getBody(), true));
const response = await fetch("https://rsflowhub.com/api/v1/ai/spam-detection", {
method: "POST",
headers: {
"X-API-Key": "rfh_your_api_key",
"Content-Type": "application/json"
},
body: JSON.stringify({"text":"Congratulations!!! You won a $500 gift card. Claim now at bit.ly/free-gift before it expires"})
});
console.log(await response.json());
import requests
response = requests.post(
"https://rsflowhub.com/api/v1/ai/spam-detection",
headers={"X-API-Key": "rfh_your_api_key"},
json={"text":"Congratulations!!! You won a $500 gift card. Claim now at bit.ly/free-gift before it expires"},
)
print(response.json())
{
"success": true,
"request_id": "req_3f9a2c7e-5b1d-4e8a-9c2f-7d6e1a0b4c8d",
"data": {
"result": {
"is_spam": true,
"spam_score": 0.97,
"spam_category": "phishing",
"reason": "Unsolicited prize claim with a shortened link and urgency pressure."
}
},
"meta": {
"version": "v1",
"timestamp": "2026-10-05T09:30:00Z"
}
}
Neutralizes adversarial jailbreaks and system prompt extraction attempts.
Provides multi-category risk scores for profanity, hate speech, and harassment.
Runs as one lightweight check before your main AI call, so it fits into live chat flows.
Typical pipelines built with AI Safety & Content Moderation APIs.
Inspect incoming user prompts before they reach expensive foundation models to prevent jailbreaks and system prompt extraction.
Filter hate speech, cyberbullying, and profanity in real-time gaming lobbies and community forums.
Ensure outward-facing automated responses adhere to company guidelines and legal standards before customer transmission.
How the AI Safety & Content Moderation APIs compare with calling a provider directly or running your own models.
| Topic | RSFlowHub | Provider SDK | Self-hosted |
|---|---|---|---|
| Prompt Injection Defense | Dedicated Multi-Pattern Injection Classifier | Vulnerable to Jailbreaks | Complex Rule Maintenance |
| Audit Trail | Standardized Flag Envelopes | Inconsistent Error Codes | Custom Logging Infrastructure |
| Guardrail Latency | One Lightweight Pre-Check Call | Full LLM Latency Hit | Requires Fast Local Classifier |
Free plan with 100 credits/month + 1,000 bonus credits when you sign in before 23 Nov. One key works for every API in every category.
Flowy
AI assistant