com.atproto.server.createInviteCodes

atproto-lexicons.bsky.social

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "accountCodes": {
      "properties": {
        "account": {
          "type": "string"
        },
        "codes": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "account",
        "codes"
      ],
      "type": "object"
    },
    "main": {
      "description": "Create invite codes.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "codeCount": {
              "default": 1,
              "type": "integer"
            },
            "forAccounts": {
              "items": {
                "format": "did",
                "type": "string"
              },
              "type": "array"
            },
            "useCount": {
              "type": "integer"
            }
          },
          "required": [
            "codeCount",
            "useCount"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "codes": {
              "items": {
                "ref": "#accountCodes",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "codes"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "com.atproto.server.createInviteCodes",
  "lexicon": 1
}

Validate Record

Validate a record against com.atproto.server.createInviteCodes

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:6msi3pj7krzih5qxqtryxlzw
CID
bafyreidpwhayukm2ytzncekfinio4dehp5y6ksmwpvrxwl4fhdnqh62ewa
Indexed At
2026-02-18 18:59 UTC
AT-URI
at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.createInviteCodes

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

Lexicon Garden

@