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
bash
curl -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 guide

Get an API key

Start making decisions in minutes with a Developer plan and clear upgrade paths.

Get an API key