com.atproto.server.createInviteCodes

Create invite codes.

Details · procedure
Kindprocedure
Authorityserver.atproto.com
Indexed

Procedure

procedure · POST

Input

application/json

codeCount

requiredinteger
  • default: 1
itemsstring · did

useCount

requiredinteger

Output

application/json

codes

requiredarray
itemsref
Reference

#accountCodes

object

Properties

account

requiredstring

codes

requiredarray
itemsstring

Similar lexicons

semantic match

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

  • Create an invite code.

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

  • Disable some set of codes and/or all codes associated with a set of users.

  • Generate a batch of single-use PDS invite codes (TEM-502). Requires the caller to have the `superAdmin` role. Each call requests `quantity` codes from the PDS (`com.atproto.server.createInviteCode` with `useCount=1`), writes one `inviteCodeCreated` audit row per successfully-created code (payload = SHA-256 hash of the suffix + `use_count`, never the plain code), and returns the suffix-only codes. When the PDS returns a transient failure mid-batch the handler stops iterating and returns the succe