tools.ozone.moderation.query Events

GET {{baseUrl}}/xrpc/tools.ozone.moderation.queryEvents?types=<string>&types=<string>&createdBy=<did>&sortDirection=desc&createdAfter=<dateTime>&createdBefore=<dateTime>&subject=<uri>&collections=<nsid>&collections=<nsid>&subjectType=<string>&includeAllUserRecords=<boolean>&limit=50&hasComment=<boolean>&comment=<string>&addedLabels=<string>&addedLabels=<string>&removedLabels=<string>&removedLabels=<string>&addedTags=<string>&addedTags=<string>&removedTags=<string>&removedTags=<string>&reportTypes=<string>&reportTypes=<string>&cursor=<string>

This endpoint is part of the Ozone moderation service APIs. Requests usually require authentication, are directed to the user's PDS intance, and proxied to the Ozone instance indicated by the DID in the service proxying header. Admin authenentication may also be possible, with request sent directly to the Ozone instance.

To learn more about calling atproto API endpoints like this one, see the API Hosts and Auth guide.

List moderation events related to a subject.

Request Params

KeyDatatypeRequiredDescription
typesstringThe types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned.
typesstringThe types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned.
createdBystring
sortDirectionstringSort direction for the events. Defaults to descending order of created at timestamp.
createdAfterstringRetrieve events created after a given timestamp
createdBeforestringRetrieve events created before a given timestamp
subjectstring
collectionsstringIf specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored.
collectionsstringIf specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored.
subjectTypestringIf specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.
includeAllUserRecordsstringIf true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned.
limitnumber
hasCommentstringIf true, only events with comments are returned
commentstringIf specified, only events with comments containing the keyword are returned
addedLabelsstringIf specified, only events where all of these labels were added are returned
addedLabelsstringIf specified, only events where all of these labels were added are returned
removedLabelsstringIf specified, only events where all of these labels were removed are returned
removedLabelsstringIf specified, only events where all of these labels were removed are returned
addedTagsstringIf specified, only events where all of these tags were added are returned
addedTagsstringIf specified, only events where all of these tags were added are returned
removedTagsstringIf specified, only events where all of these tags were removed are returned
removedTagsstringIf specified, only events where all of these tags were removed are returned
reportTypesstring
reportTypesstring
cursorstring

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;events&quot;:[{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;event&quot;:{&quot;comment&quot;:&quot;\u003cstring\u003e&quot;,&quot;durationInHours&quot;:&quot;\u003cinteger\u003e&quot;,&quot;acknowledgeAccountSubjects&quot;:&quot;\u003cboolean\u003e&quot;},&quot;subject&quot;:{&quot;did&quot;:&quot;\u003cdid\u003e&quot;},&quot;subjectBlobCids&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;createdBy&quot;:&quot;\u003cdid\u003e&quot;,&quot;createdAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;creatorHandle&quot;:&quot;\u003cstring\u003e&quot;,&quot;subjectHandle&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;event&quot;:{&quot;comment&quot;:&quot;\u003cstring\u003e&quot;,&quot;durationInHours&quot;:&quot;\u003cinteger\u003e&quot;,&quot;acknowledgeAccountSubjects&quot;:&quot;\u003cboolean\u003e&quot;},&quot;subject&quot;:{&quot;did&quot;:&quot;\u003cdid\u003e&quot;},&quot;subjectBlobCids&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;createdBy&quot;:&quot;\u003cdid\u003e&quot;,&quot;createdAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;creatorHandle&quot;:&quot;\u003cstring\u003e&quot;,&quot;subjectHandle&quot;:&quot;\u003cstring\u003e&quot;}],&quot;cursor&quot;:&quot;\u003cstring\u003e&quot;}