tools.ozone.moderation.queryEvents
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "List moderation events related to a subject.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"cursor": {
"type": "string"
},
"events": {
"items": {
"ref": "tools.ozone.moderation.defs#modEventView",
"type": "ref"
},
"type": "array"
}
},
"required": [
"events"
],
"type": "object"
}
},
"parameters": {
"properties": {
"addedLabels": {
"description": "If specified, only events where all of these labels were added are returned",
"items": {
"type": "string"
},
"type": "array"
},
"addedTags": {
"description": "If specified, only events where all of these tags were added are returned",
"items": {
"type": "string"
},
"type": "array"
},
"ageAssuranceState": {
"description": "If specified, only events where the age assurance state matches the given value are returned",
"knownValues": [
"pending",
"assured",
"unknown",
"reset",
"blocked"
],
"type": "string"
},
"batchId": {
"description": "If specified, only events where the batchId matches the given value are returned",
"type": "string"
},
"collections": {
"description": "If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored.",
"items": {
"format": "nsid",
"type": "string"
},
"maxLength": 20,
"type": "array"
},
"comment": {
"description": "If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition.",
"type": "string"
},
"createdAfter": {
"description": "Retrieve events created after a given timestamp",
"format": "datetime",
"type": "string"
},
"createdBefore": {
"description": "Retrieve events created before a given timestamp",
"format": "datetime",
"type": "string"
},
"createdBy": {
"format": "did",
"type": "string"
},
"cursor": {
"type": "string"
},
"hasComment": {
"description": "If true, only events with comments are returned",
"type": "boolean"
},
"includeAllUserRecords": {
"default": false,
"description": "If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned.",
"type": "boolean"
},
"limit": {
"default": 50,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"modTool": {
"description": "If specified, only events where the modTool name matches any of the given values are returned",
"items": {
"type": "string"
},
"type": "array"
},
"policies": {
"items": {
"description": "If specified, only events where the action policies match any of the given policies are returned",
"type": "string"
},
"type": "array"
},
"removedLabels": {
"description": "If specified, only events where all of these labels were removed are returned",
"items": {
"type": "string"
},
"type": "array"
},
"removedTags": {
"description": "If specified, only events where all of these tags were removed are returned",
"items": {
"type": "string"
},
"type": "array"
},
"reportTypes": {
"items": {
"type": "string"
},
"type": "array"
},
"sortDirection": {
"default": "desc",
"description": "Sort direction for the events. Defaults to descending order of created at timestamp.",
"enum": [
"asc",
"desc"
],
"type": "string"
},
"subject": {
"format": "uri",
"type": "string"
},
"subjectType": {
"description": "If 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.",
"knownValues": [
"account",
"record"
],
"type": "string"
},
"types": {
"description": "The 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.",
"items": {
"type": "string"
},
"type": "array"
},
"withStrike": {
"description": "If specified, only events where strikeCount value is set are returned.",
"type": "boolean"
}
},
"type": "params"
},
"type": "query"
}
},
"id": "tools.ozone.moderation.queryEvents",
"lexicon": 1
}
Metadata
- DID
-
did:plc:33dt5kftu3jq2h5h4jjlqezt - CID
-
bafyreibzm3f2ccvvwrz4hcqenkembnufs2yrfa4gelcc7wzxodls6dp44q - Indexed At
- 2026-07-26 20:04 UTC
- AT-URI
-
at://did:plc:33dt5kftu3jq2h5h4jjlqezt/com.atproto.lexicon.schema/tools.ozone.moderation.queryEvents
Version History (2 versions)
Referenced Schemas (1)
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
View moderation statuses of subjects (record or repo).
-
View moderation reports. Reports are individual instances of content being reported, as opposed to subject statuses which aggregate reports at the subject level.
-
Global audit journal browser for the moderation console. Returns moderation_audit rows in reverse-chronological (created_at, id) keyset order, optionally filtered by acting moderator, action type, or subject DID. Compleā¦
-
Get timeline of all available events of an account. This includes moderation events, account history and did history.
-
List subjects belonging to the authenticated account that have moderation actions from this moderation service.