Make report
POST
/user-reports
This endpoint should be called when a user on your product reports another user or piece of content.
POST /user-reports
curl \
-X POST https://api.lassomoderation.com/api/v1/user-reports \
-H "Content-Type: application/json" \
-H "Authorization: Bearer lasso.a35afd...a6ea" \
-d '{"report":{"reported_by_id":"some_user_id","reported_by_type":"normal","user_id":"some_user_id","content_id":"some_content_id","policy_id":"other","extra_info":"Some explanation from the user why it is reported"}}'
Request example
# Headers
Authorization: Bearer lasso.a35afd...a6ea
# Payload
{
"report": {
"reported_by_id": "some_user_id",
"reported_by_type": "normal",
"user_id": "some_user_id",
"content_id": "some_content_id",
"policy_id": "other",
"extra_info": "Some explanation from the user why it is reported"
}
}
Response examples (200)
{
"success": true
}