This documentation site is for the versions of Synapse maintained by the Matrix.org Foundation (github.com/matrix-org/synapse), available under the Apache 2.0 licence.
To paginate, check for next_token and if present, call the endpoint again with from
set to the value of next_token. This will return a new page.
If the endpoint does not return a next_token then there are no more reports to
paginate through.
URL parameters:
limit: integer - Is optional but is used for pagination, denoting the maximum number
of items to return in this call. Defaults to 100.
from: integer - Is optional but used for pagination, denoting the offset in the
returned results. This should be treated as an opaque value and not explicitly set to
anything other than the return value of next_token from a previous call. Defaults to 0.
dir: string - Direction of event report order. Whether to fetch the most recent
first (b) or the oldest first (f). Defaults to b.
user_id: string - Is optional and filters to only return users with user IDs that
contain this value. This is the user who reported the event and wrote the reason.
room_id: string - Is optional and filters to only return rooms with room IDs that
contain this value.
Response
The following fields are returned in the JSON response body:
id: integer - ID of event report.
received_ts: integer - The timestamp (in milliseconds since the unix epoch) when this
report was sent.
room_id: string - The ID of the room in which the event being reported is located.
name: string - The name of the room.
event_id: string - The ID of the reported event.
user_id: string - This is the user who reported the event and wrote the reason.
reason: string - Comment made by the user_id in this report. May be blank or null.
score: integer - Content is reported based upon a negative score, where -100 is
"most offensive" and 0 is "inoffensive". May be null.
sender: string - This is the ID of the user who sent the original message/event that
was reported.
canonical_alias: string - The canonical alias of the room. null if the room does not
have a canonical alias set.
next_token: integer - Indication for pagination. See above.
total: integer - Total number of event reports related to the query
(user_id and room_id).