Complete Audit Trails
Every decision has an ID linking to policy version, input hash, provider response, and resulting action
Turn automated judgments into auditable, defensible decisions with complete policy governance
npm install @vettly/sdkbun add @vettly/sdkyarn add @vettly/sdkRun the SDK on your server. Vettly API keys are bearer credentials and must not be shipped in browser bundles.
import { ModerationClient } from '@vettly/sdk'
const vettly = new ModerationClient({
apiKey: process.env.VETTLY_API_KEY!
})
// Every decision returns a unique ID and audit trail
const decision = await vettly.check({
content: userPost.body,
policyId: 'your-policy-id',
metadata: {
userId: user.id,
sessionId: session.id
}
})
// Store decision.decisionId for appeals, audits, and legal discovery
console.log(decision.action) // 'allow' | 'warn' | 'flag' | 'block'
console.log(decision.decisionId) // UUIDFor a browser app, call your own server endpoint and let the server make this request. See the server-proxy quickstart.
Every judgment produces a complete audit record:
Learn about Decision Records →
Define explicit rules in version-controlled YAML:
rules:
- category: harassment
threshold: 0.4
action: flag
- category: hate_speech
threshold: 0.3
action: blockLearn about Policy Versioning →
Built-in due process for contested decisions:
| Capability | Vettly | Classification APIs |
|---|---|---|
| Decision IDs | ✅ Every judgment | ❌ No tracking |
| Policy Versioning | ✅ Version-controlled | ❌ Not available |
| Audit Trails | ✅ Complete history | ❌ Build your own |
| Appeals Workflow | ✅ Built-in | ❌ Build your own |
| Evidence Preservation | ✅ GDPR-compliant | ❌ Build your own |
| Compliance Reports | ✅ Export ready | ❌ Build your own |
| Provider Abstraction | ✅ Same policy, any provider | ❌ Vendor lock-in |
Explore the content moderation API for product capabilities and supported content types, or see pricing plans for included usage and limits.
When a decision becomes a lawsuit, you need proof of your process.
DSA, GDPR, and industry-specific requirements all need documentation.
Users contesting decisions deserve a fair process with complete evidence.
Found an issue with the docs? Report it on GitHub.