atproto blogging
at main 65 lines 1.7 kB view raw
1{ 2 "lexicon": 1, 3 "id": "app.bsky.feed.getPostThread", 4 "defs": { 5 "main": { 6 "type": "query", 7 "description": "Get posts in a thread. Does not require auth, but additional metadata and filtering will be applied for authed requests.", 8 "parameters": { 9 "type": "params", 10 "required": [ 11 "uri" 12 ], 13 "properties": { 14 "depth": { 15 "type": "integer", 16 "description": "How many levels of reply depth should be included in response.", 17 "default": 6, 18 "minimum": 0, 19 "maximum": 1000 20 }, 21 "parentHeight": { 22 "type": "integer", 23 "description": "How many levels of parent (and grandparent, etc) post to include.", 24 "default": 80, 25 "minimum": 0, 26 "maximum": 1000 27 }, 28 "uri": { 29 "type": "string", 30 "description": "Reference (AT-URI) to post record.", 31 "format": "at-uri" 32 } 33 } 34 }, 35 "output": { 36 "encoding": "application/json", 37 "schema": { 38 "type": "object", 39 "required": [ 40 "thread" 41 ], 42 "properties": { 43 "thread": { 44 "type": "union", 45 "refs": [ 46 "app.bsky.feed.defs#threadViewPost", 47 "app.bsky.feed.defs#notFoundPost", 48 "app.bsky.feed.defs#blockedPost" 49 ] 50 }, 51 "threadgate": { 52 "type": "ref", 53 "ref": "app.bsky.feed.defs#threadgateView" 54 } 55 } 56 } 57 }, 58 "errors": [ 59 { 60 "name": "NotFound" 61 } 62 ] 63 } 64 } 65}