Learn how to handle user-flagged content with the Moderation API
toxicity
, nsfw
, sentiment
, pii
, and spam
.
We will keep the flagging thresholds at their default values for now.
Report Profile
that will be used to report user profiles.report_profile
for later use.Report Profile
that we created earlier.Remove Profile
.https://wizard-dating.com/webhooks
to handle the removal of the profile from the application..env
file in your project root with your project API key:
/moderate/object
endpoint. This allows us to detect any issues with the profile content.
/actions/execute
endpoint to report a profile. This function should be exposed to users through your application’s UI.
Remove Profile
action. In this example, we’re using Next.js and the Moderation API’s Node SDK to verify the webhook signature.
UNSAFE
.
Tip: You can also click on the labels in the chart to apply the filter.
UNSAFE
.Example: “I’m actually a muggle but I’m looking for something magical.”