atproto pastebin service: https://plonk.li
at main 1.6 kB view raw
1{ 2 "lexicon": 1, 3 "id": "com.atproto.repo.getRecord", 4 "defs": { 5 "main": { 6 "type": "query", 7 "description": "Get a single record from a repository. Does not require auth.", 8 "parameters": { 9 "type": "params", 10 "required": [ 11 "repo", 12 "collection", 13 "rkey" 14 ], 15 "properties": { 16 "repo": { 17 "type": "string", 18 "format": "at-identifier", 19 "description": "The handle or DID of the repo." 20 }, 21 "collection": { 22 "type": "string", 23 "format": "nsid", 24 "description": "The NSID of the record collection." 25 }, 26 "rkey": { 27 "type": "string", 28 "description": "The Record Key." 29 }, 30 "cid": { 31 "type": "string", 32 "format": "cid", 33 "description": "The CID of the version of the record. If not specified, then return the most recent version." 34 } 35 } 36 }, 37 "output": { 38 "encoding": "application/json", 39 "schema": { 40 "type": "object", 41 "required": [ 42 "uri", 43 "value" 44 ], 45 "properties": { 46 "uri": { 47 "type": "string", 48 "format": "at-uri" 49 }, 50 "cid": { 51 "type": "string", 52 "format": "cid" 53 }, 54 "value": { 55 "type": "unknown" 56 } 57 } 58 } 59 }, 60 "errors": [ 61 { 62 "name": "RecordNotFound" 63 } 64 ] 65 } 66 } 67}