Make report

POST /user-reports

This endpoint should be called when a user on your product reports another user or piece of content.

Headers

application/json

Body

Make a report about a user, message or image.

  • report object Required
    Hide report attributes Show report attributes
    • reported_by_id string Required

      The id of the user who makes the report

    • You can specify if the report was made by a normal user, admin or moderator.

      Values are normal, admin, or moderator.

    • user_id string

      The user id of the user who is reported (optional)

    • The id of the image or message that is being repoted(optional)

    • policy_id string Required

      The id of the policy that the user specifies

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
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
}