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 }
Retrieve reports
ADMIN
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Reports retrieved successfully
Show child attributes