app.tempomusic.staff.listInviteCodes
List PDS invite codes on-demand via the PDS (`com.atproto.admin.getInviteCodes`). No local mirror — the source of truth is the PDS. Requires the caller to have the `superAdmin` role. Codes are returned as suffix-only strings (the env prefix stored under `APPVIEW_PDS_INVITE_CODE_PREFIX` has been stripped). Optional `createdBy` filter narrows the listing to codes emitted by a specific staff DID (applied server-side by the AppView — the admin endpoint has no such parameter); when omitted every code is returned.
Details · query
| Kind | query |
|---|---|
| Authority | staff.tempomusic.app |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "List PDS invite codes on-demand via the PDS (`com.atproto.admin.getInviteCodes`). No local mirror — the source of truth is the PDS. Requires the caller to have the `superAdmin` role. Codes are returned as suffix-only strings (the env prefix stored under `APPVIEW_PDS_INVITE_CODE_PREFIX` has been stripped). Optional `createdBy` filter narrows the listing to codes emitted by a specific staff DID (applied server-side by the AppView — the admin endpoint has no such parameter); when omitted every code is returned.",
"errors": [
{
"description": "The caller is not a super-admin.",
"name": "Forbidden"
},
{
"description": "The PDS returned a transient failure — the query never lands locally, retry.",
"name": "PdsUnavailable"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"codes": {
"items": {
"ref": "app.tempomusic.staff.defs#inviteCodeView",
"type": "ref"
},
"type": "array"
}
},
"required": [
"codes"
],
"type": "object"
}
},
"parameters": {
"properties": {
"createdBy": {
"description": "Optional DID filter. When set, only codes generated by that staff account are returned.",
"format": "did",
"type": "string"
}
},
"type": "params"
},
"type": "query"
}
},
"id": "app.tempomusic.staff.listInviteCodes",
"lexicon": 1
}