atproto blogging
1{
2 "lexicon": 1,
3 "id": "com.atproto.label.queryLabels",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth.",
8 "parameters": {
9 "type": "params",
10 "required": [
11 "uriPatterns"
12 ],
13 "properties": {
14 "cursor": {
15 "type": "string"
16 },
17 "limit": {
18 "type": "integer",
19 "default": 50,
20 "minimum": 1,
21 "maximum": 250
22 },
23 "sources": {
24 "type": "array",
25 "description": "Optional list of label sources (DIDs) to filter on.",
26 "items": {
27 "type": "string",
28 "format": "did"
29 }
30 },
31 "uriPatterns": {
32 "type": "array",
33 "description": "List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI.",
34 "items": {
35 "type": "string"
36 }
37 }
38 }
39 },
40 "output": {
41 "encoding": "application/json",
42 "schema": {
43 "type": "object",
44 "required": [
45 "labels"
46 ],
47 "properties": {
48 "cursor": {
49 "type": "string"
50 },
51 "labels": {
52 "type": "array",
53 "items": {
54 "type": "ref",
55 "ref": "com.atproto.label.defs#label"
56 }
57 }
58 }
59 }
60 }
61 }
62 }
63}