MIGRATION GUIDE
Migrate from Perspective API to Sentiqra.
Perspective API retires December 31, 2026. Sentiqra provides a drop-in replacement with multilingual coverage, granular policy mapping, and audit trails you can replay.
Before and after
const response = await perspective.analyze({
text: "You're an idiot and I hope you fail.",
attributes: ["TOXICITY", "INSULT"]
});
// Response: attribute scores
// {
// "attributeScores": {
// "TOXICITY": { "summaryScore": { "value": 0.92 } },
// "INSULT": { "summaryScore": { "value": 0.88 } }
// }
// }
const response = await sentiqra.analyze({
text: "You're an idiot and I hope you fail.",
language: "en",
analyzers: ["trust-safety"]
});
// Response: structured signals with config ID
// {
// "signals": [
// { "code": "insults_derogation", "score": 0.86, ... },
// { "code": "insult", "score": 0.99, ... }
// ],
// "verification": { "configuration": "sqcfg_HJW2EMH1", ... }
// }
Field mapping
| Perspective API | Sentiqra | Notes |
|---|---|---|
| TOXICITY | signals[].code = "toxic_conflict" | Direct equivalent in Trust & Safety taxonomy |
| INSULT | signals[].code = "insult" | Direct equivalent in Trust & Safety taxonomy |
| THREAT | signals[].code = "threats_intimidation" | Direct equivalent in Trust & Safety taxonomy |
| attributeScores.X.summaryScore.value | signals[].score | Per-label signal-match score (0-1) |
| - | verification.configuration | Immutable config ID - locks the version the result was produced under |
| - | verification.fingerprint | Fingerprint for audit trail |
Migration checklist
Map Perspective attributes to Sentiqra signal codes
Use the field mapping table above. Sentiqra's Trust & Safety taxonomy includes direct equivalents for all Perspective attributes.
Update your API client
Replace the Perspective client with Sentiqra's REST API. Use the code examples above as a starting point.
Test with your production data
Run 20 representative samples through both systems. Compare outputs side by side.
Update your policy mapping
Map Sentiqra's signal codes to your enforcement rules. Sentiqra's granular taxonomy allows more precise policy mapping than Perspective's attribute scores.
Enable verification receipts
Store the configuration ID - the pinned version the result was produced under - and the fingerprint from each successful analysis response. That is what lets you reproduce the result for appeals and audits.
Ready to migrate?
Start with 5,000 analyzer runs per month. Access by request.