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
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
}ADMIN to be able to use this API.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Reports retrieved successfully
Show child attributes
Show child attributes
reviewing, no_action, suspended kandungan_tidak_sesuai, isu_keselamatan, penyalahgunaan, spam, kandungan_palsu, kandungan_sensitif, pelanggaran_hak_cipta, maklumat_salah reviewing, no_action, suspended