-
Notifications
You must be signed in to change notification settings - Fork 395
/
getRecord.json
38 lines (38 loc) · 1.15 KB
/
getRecord.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"lexicon": 1,
"id": "com.atproto.sync.getRecord",
"defs": {
"main": {
"type": "query",
"description": "Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth.",
"parameters": {
"type": "params",
"required": ["did", "collection", "rkey"],
"properties": {
"did": {
"type": "string",
"format": "did",
"description": "The DID of the repo."
},
"collection": { "type": "string", "format": "nsid" },
"rkey": { "type": "string", "description": "Record Key" },
"commit": {
"type": "string",
"format": "cid",
"description": "DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit"
}
}
},
"output": {
"encoding": "application/vnd.ipld.car"
},
"errors": [
{ "name": "RecordNotFound" },
{ "name": "RepoNotFound" },
{ "name": "RepoTakendown" },
{ "name": "RepoSuspended" },
{ "name": "RepoDeactivated" }
]
}
}
}