Accept account invitation

acceptAccountInvitation(input: AcceptAccountInvitationInput!): Account!

Arguments

ArgumentTypeRequired
inputAcceptAccountInvitationInput!Yes

Input fields

input

AcceptAccountInvitationInput

FieldTypeRequiredDescription
tokenString!YesInvitation acceptance token. Requires a user session; API keys are refused. Fresh acceptance requires the matching current email. Repeating acceptance returns the existing membership for the same accepting user, if that membership still exists. Unknown or revoked tokens return 404; a fresh request with a mismatched email returns 403. Expired or no longer authorized invitations return 409.

Response

Returns Account!. Open the type for its fields and nested types.

FieldTypeDescription
idID!
slugString!
nameString!
kindString!
createdAtString!
updatedAtString!
membershipAccountMembership!The caller's role and resolved account capabilities.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation AcceptAccountInvitation($input: AcceptAccountInvitationInput!) {
  acceptAccountInvitation(input: $input) {
    id
    name
    slug
    createdAt
    updatedAt
  }
}
json
{
  "input": {
    "token": "example"
  }
}