-
Notifications
You must be signed in to change notification settings - Fork 395
/
getAccountInviteCodes.json
38 lines (38 loc) · 1 KB
/
getAccountInviteCodes.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.server.getAccountInviteCodes",
"defs": {
"main": {
"type": "query",
"description": "Get all invite codes for the current account. Requires auth.",
"parameters": {
"type": "params",
"properties": {
"includeUsed": { "type": "boolean", "default": true },
"createAvailable": {
"type": "boolean",
"default": true,
"description": "Controls whether any new 'earned' but not 'created' invites should be created."
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["codes"],
"properties": {
"codes": {
"type": "array",
"items": {
"type": "ref",
"ref": "com.atproto.server.defs#inviteCode"
}
}
}
}
},
"errors": [{ "name": "DuplicateCreate" }]
}
}
}