{
"id": "pub.oysters.getPostThread",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "NotFound",
"description": "No submission at that URI, or it has been deleted."
},
{
"name": "InvalidRequest",
"description": "The URI is not an AT-URI in one of this board's collections."
}
],
"output": {
"schema": {
"type": "object",
"required": [
"thread"
],
"properties": {
"thread": {
"ref": "pub.oysters.defs#threadViewPost",
"type": "ref",
"description": "The submission and its replies."
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"uri"
],
"properties": {
"uri": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of the submission."
},
"depth": {
"type": "integer",
"default": 12,
"maximum": 12,
"minimum": 0,
"description": "How many levels of replies to include. Beyond this, a comment's replies come back empty."
}
}
},
"description": "A submission and its discussion."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}