Skip to content

com.atproto.server.createInviteCode

Lexicon Version: 1

Type: procedure

Create an invite code.

Parameters: (None defined)

Input:

  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
useCountinteger
forAccountstringFormat: did
Output:
  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
codestring

{
"lexicon": 1,
"id": "com.atproto.server.createInviteCode",
"defs": {
"main": {
"type": "procedure",
"description": "Create an invite code.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"useCount"
],
"properties": {
"useCount": {
"type": "integer"
},
"forAccount": {
"type": "string",
"format": "did"
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "string"
}
}
}
}
}
}
}