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 object
    • 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":{"user_id":"some_user_id","policy_id":"other","content_id":"some_content_id","extra_info":"Some explanation from the user why it is reported","reported_by_id":"some_user_id","reported_by_type":"normal"}}'
Request example
{
  "report": {
    "user_id": "some_user_id",
    "policy_id": "other",
    "content_id": "some_content_id",
    "extra_info": "Some explanation from the user why it is reported",
    "reported_by_id": "some_user_id",
    "reported_by_type": "normal"
  }
}
Response examples (200)
{
  "success": true
}