atproto blogging
at main 51 lines 1.1 kB view raw
1{ 2 "lexicon": 1, 3 "id": "com.atproto.sync.getBlocks", 4 "defs": { 5 "main": { 6 "type": "query", 7 "description": "Get data blocks from a given repo, by CID. For example, intermediate MST nodes, or records. Does not require auth; implemented by PDS.", 8 "parameters": { 9 "type": "params", 10 "required": [ 11 "did", 12 "cids" 13 ], 14 "properties": { 15 "cids": { 16 "type": "array", 17 "items": { 18 "type": "string", 19 "format": "cid" 20 } 21 }, 22 "did": { 23 "type": "string", 24 "description": "The DID of the repo.", 25 "format": "did" 26 } 27 } 28 }, 29 "output": { 30 "encoding": "application/vnd.ipld.car" 31 }, 32 "errors": [ 33 { 34 "name": "BlockNotFound" 35 }, 36 { 37 "name": "RepoNotFound" 38 }, 39 { 40 "name": "RepoTakendown" 41 }, 42 { 43 "name": "RepoSuspended" 44 }, 45 { 46 "name": "RepoDeactivated" 47 } 48 ] 49 } 50 } 51}