Accept an invite and join its account
Joins the signed-in person to the invite’s account with the invite’s role. In
one transaction it adds the membership, marks the invite used and writes a
member.joined audit entry. This is the only way into an account: no request
joins by itself, and there is no membership before this call. The invite link
carries the invite id, so the invite page accepts with the same id.
The session’s email must be the invite’s, and verified (user.email_verified on
GET /v1/me); an unverified email gets 403 email_not_verified. A person who
already belongs to an account gets 409 already_member: one account per person.
Both are answered before the invite is looked up, so neither says whether an
invite exists. An unknown, used, revoked or expired invite, one of a disabled
account, or one sent to another address gets the same 404 invite_not_found.
People: any signed-in person, with or without an account. An API key gets 403
scope_missing.
Authentication
A Meadow API key, sent as Authorization: Bearer mdw_.... The header
x-api-key: mdw_... is accepted in its place.
Path parameters
The invite id. The invite link carries the same value, so the invite page accepts with it.
Response headers
Meadow’s id for this request, req_ and 24 hex characters. Every response
carries it, including errors, streams and unknown routes. Every error in the
Error schema repeats it as request_id. Quote it when you report a problem.
Response
A person’s role in the account. owner: everything, and people. admin:
everything except people. member: keys without the admin scope that they
minted, stopping sandboxes, deleting images, and every read. viewer (shown as
Read-only): every read. The dashboard labels viewer “Read-only”.