com.atproto.server.getAccountInviteCodes

Get all invite codes for the current account. Requires auth.

Details · query
Kindquery
Authorityserver.atproto.com
Indexed
cid bafyreibeczlag36upzn67uqsheo4st47z7nbpvfrdgko777633saur7jui

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get all invite codes for the current account. Requires auth.",
      "errors": [
        {
          "name": "DuplicateCreate"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "codes": {
              "items": {
                "ref": "com.atproto.server.defs#inviteCode",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "codes"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "createAvailable": {
            "default": true,
            "description": "Controls whether any new 'earned' but not 'created' invites should be created.",
            "type": "boolean"
          },
          "includeUsed": {
            "default": true,
            "type": "boolean"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.atproto.server.getAccountInviteCodes",
  "lexicon": 1
}