at.happyproto.actor.acceptInvite

happyproto.at

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Redeem an invite from admin.createInvites: the caller joins the customers space with read access, and the address the invite went to is paired with the caller's account. Redeeming as an account that is already a customer succeeds and spends nothing. Any signed-in account may call this; the token is the authority.",
      "errors": [
        {
          "description": "This endpoint requires an authenticated caller.",
          "name": "AuthRequired"
        },
        {
          "description": "token is missing or malformed, or idempotencyKey is not a UUID.",
          "name": "InvalidRequest"
        },
        {
          "description": "No invite has this token, or it is not an invite to the customers space.",
          "name": "InvalidInvite"
        },
        {
          "description": "The invite has already been redeemed, or was revoked.",
          "name": "InviteUsed"
        },
        {
          "description": "The invite has expired.",
          "name": "InviteExpired"
        },
        {
          "description": "The customers space is not configured, or the invite could not be redeemed.",
          "name": "Upstream"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "idempotencyKey": {
              "description": "A UUID, new for each attempt; a retry reuses it.",
              "type": "string"
            },
            "token": {
              "maxLength": 128,
              "type": "string"
            }
          },
          "required": [
            "token",
            "idempotencyKey"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "isCustomer": {
              "description": "Always true on success.",
              "type": "boolean"
            },
            "joined": {
              "description": "Whether this call made the caller a customer. False when they already were, in which case the invite was not spent.",
              "type": "boolean"
            }
          },
          "required": [
            "isCustomer",
            "joined"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "at.happyproto.actor.acceptInvite",
  "lexicon": 1
}

Validate Record

Validate a record against at.happyproto.actor.acceptInvite

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:mo7vq4jbioxwafy5zkcc3eux
CID
bafyreib5p7szzsja25qkwyqh4zkll77zuqmercxlads4tqtmns5jzx6sma
Indexed At
2026-10-27 22:08 UTC
AT-URI
at://did:plc:mo7vq4jbioxwafy5zkcc3eux/com.atproto.lexicon.schema/at.happyproto.actor.acceptInvite

Similar Lexicons

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

  • Invite customers: mint one single-use customers-space invite per address, each expiring after expiresInDays, and record which address each went to, so a redeemed invite pairs the address with the account. Redeemed with …

  • Redeem an invite token. The JWT issuer becomes a member of the space with the invite's perms.

  • Every customer invite, newest first: the address it went to, whether it is pending, expired or redeemed, and by which account. Staff only.

Lexicon Garden

@