Swift
Swift Moderation API
Add content moderation to your Swift app with a single REST call.
Works with URLSession, Alamofire, and any Swift HTTP client. Apple Guideline 1.2 compliance included.
What it detects
- • Content filtering
- • User reporting
- • User blocking
- • Hate & harassment
- • Sexual content
- • Violence & self-harm
Why developers choose Vettly
- • REST API works with any Swift HTTP client
- • Pre-built App Store policy template
- • Sub-300ms latency for real-time filtering
- • All four Guideline 1.2 requirements in one API
Example request
bashcurl -X POST https://api.vettly.dev/v1/check \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"content": "You are terrible.", "contentType": "text"}'Example response
json{
"flagged": true,
"action": "block",
"categories": {
"harassment": 0.93,
"hate": 0.02
},
"policy": "default",
"latency_ms": 142
}Compared to building in-house
Vettly handles content filtering, reporting, blocking, and audit trails so you can focus on your app, not compliance infrastructure.
Swift integration guideKeep exploring
Content Moderation in Next.js
Add content moderation to a Next.js App Router project in minutes. Route Handlers, Server Actions, edge runtime, policy setup, and safe error handling.
Content Moderation in Node.js
Add content moderation to any Node.js service in minutes. Works with Express, Fastify, NestJS, Hono, and any HTTP framework.
AI Chatbot Moderation API
Moderate inputs and LLM outputs in real time. Block prompt injection, NSFW content, and policy violations before users see them.