atproto blogging
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 "cid": {
17 "type": "string",
18 "description": "The CID of the version of the record. If not specified, then return the most recent version.",
19 "format": "cid"
20 },
21 "collection": {
22 "type": "string",
23 "description": "The NSID of the record collection.",
24 "format": "nsid"
25 },
26 "repo": {
27 "type": "string",
28 "description": "The handle or DID of the repo.",
29 "format": "at-identifier"
30 },
31 "rkey": {
32 "type": "string",
33 "description": "The Record Key.",
34 "format": "record-key"
35 }
36 }
37 },
38 "output": {
39 "encoding": "application/json",
40 "schema": {
41 "type": "object",
42 "required": [
43 "uri",
44 "value"
45 ],
46 "properties": {
47 "cid": {
48 "type": "string",
49 "format": "cid"
50 },
51 "uri": {
52 "type": "string",
53 "format": "at-uri"
54 },
55 "value": {
56 "type": "unknown"
57 }
58 }
59 }
60 },
61 "errors": [
62 {
63 "name": "RecordNotFound"
64 }
65 ]
66 }
67 }
68}