chat.bsky.moderation.getMessageContext
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"messages": {
"items": {
"refs": [
"chat.bsky.convo.defs#messageView",
"chat.bsky.convo.defs#systemMessageView"
],
"type": "union"
},
"type": "array"
}
},
"required": [
"messages"
],
"type": "object"
}
},
"parameters": {
"properties": {
"after": {
"default": 5,
"description": "Number of user messages after the target to include. System messages between the target and the latest returned user message are also included, capped per gap by `maxInterleavedSystemMessages`. If there are no user messages after the target, up to `maxInterleavedSystemMessages` system messages immediately following the target are returned instead.",
"type": "integer"
},
"before": {
"default": 5,
"description": "Number of user messages before the target to include. System messages between the earliest returned user message and the target are also included, capped per gap by `maxInterleavedSystemMessages`. If there are no user messages before the target, up to `maxInterleavedSystemMessages` system messages immediately preceding the target are returned instead.",
"type": "integer"
},
"convoId": {
"description": "Conversation that the message is from. NOTE: this field will eventually be required.",
"type": "string"
},
"maxInterleavedSystemMessages": {
"default": 10,
"description": "Maximum number of system messages to include per gap between consecutive returned messages (and per side when there are no user messages on that side). Within a gap, the system messages closest to the earlier message are kept.",
"maximum": 1000,
"minimum": 0,
"type": "integer"
},
"messageId": {
"type": "string"
}
},
"required": [
"messageId"
],
"type": "params"
},
"type": "query"
}
},
"id": "chat.bsky.moderation.getMessageContext",
"lexicon": 1
}
Metadata
- DID
-
did:plc:4v4y5r3lwsbtmsxhile2ljac - CID
-
bafyreih436hnrsenvuaelqk5bz4esvjku2kz3blwh7lk5fmmjfzn5uxaei - Indexed At
- 2026-07-16 14:58 UTC
- AT-URI
-
at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.moderation.getMessageContext
Version History (3 versions)
Referenced Schemas (2)
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
Returns a page of messages from a conversation.
-
Messages in one of the caller's conversations, newest first.
-
Gets existing conversations by their IDs, for moderation purposes. Does not require the requester to be a member of the conversations. Unknown IDs are silently omitted from the response.