Accept an invitation by code
Joins the organisation an invitation is for, using the code from its link. The invitation must be for your account’s email address.
POST
/_luna/auth/invites/acceptAuthorization
AuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
Request body
requiredapplication/jsoninvitestringrequiredThe code from the invitation link.
Responses
200
The account joined the organisation.
okbooleanrequiredAlways true.
orgstring | nullThe slug of the organisation the account joined.
default
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.