atproto blogging
at main 54 lines 1.2 kB view raw
1{ 2 "lexicon": 1, 3 "id": "com.atproto.sync.getRecord", 4 "defs": { 5 "main": { 6 "type": "query", 7 "description": "Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth.", 8 "parameters": { 9 "type": "params", 10 "required": [ 11 "did", 12 "collection", 13 "rkey" 14 ], 15 "properties": { 16 "collection": { 17 "type": "string", 18 "format": "nsid" 19 }, 20 "did": { 21 "type": "string", 22 "description": "The DID of the repo.", 23 "format": "did" 24 }, 25 "rkey": { 26 "type": "string", 27 "description": "Record Key", 28 "format": "record-key" 29 } 30 } 31 }, 32 "output": { 33 "encoding": "application/vnd.ipld.car" 34 }, 35 "errors": [ 36 { 37 "name": "RecordNotFound" 38 }, 39 { 40 "name": "RepoNotFound" 41 }, 42 { 43 "name": "RepoTakendown" 44 }, 45 { 46 "name": "RepoSuspended" 47 }, 48 { 49 "name": "RepoDeactivated" 50 } 51 ] 52 } 53 } 54}