Skip to main content
GET
/
reports
cURL
curl --request GET \
  --url https://our-secret-api-url.com/reports \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "targetPost": {
        "snowflakeId": "<string>"
      },
      "targetUser": {
        "id": 123,
        "name": "<string>",
        "profilePicture": "<string>"
      },
      "reporter": {
        "id": 123,
        "name": "<string>",
        "profilePicture": "<string>"
      },
      "actions": [
        {
          "user": {
            "id": 123,
            "name": "<string>",
            "profilePicture": "<string>"
          },
          "id": 123,
          "notes": "<string>",
          "reportId": 123,
          "actionTaken": "reviewing",
          "actionTakenBy": 123,
          "actionTakenAt": "2023-11-07T05:31:56Z"
        }
      ],
      "id": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "reporterUserId": 123,
      "targetUserId": 123,
      "targetPostId": 123,
      "reason": "kandungan_tidak_sesuai",
      "status": "reviewing",
      "notes": "<string>"
    }
  ],
  "totalPages": 123
}
User has to be an ADMIN to be able to use this API.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

cursor
integer<int64>
size
integer<int32>
required
userId
integer<int64>
postId
integer<int64>

Response

Reports retrieved successfully

data
object[]
totalPages
integer<int32>