at.happyproto.actor.acceptInvite
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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | actor.happyproto.at |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.idempotencyKeyNo maxLength, maxGraphemes or format limits this string.
{
"$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
}