Invites
Accept an invitation
Accepts the invitation and adds the authenticated user as a member of the organization. The authenticated user's verified email must match the invitation email (case-insensitive). Returns PERMISSION_DENIED if emails don't match, FAILED_PRECONDITION if the user is already a member, or NOT_FOUND if the invitation is invalid/expired.
post/v1beta/organizations/{organization_id}/invites/accept
Path parameters
organization_idstring required
Organization the invitation belongs to (for validation). Pattern: org_[0-9a-hjkmnp-tv-z]{26}
Organization the invitation belongs to (for validation). Pattern: org_[0-9a-hjkmnp-tv-z]{26}
Request body
Response
Success
Example response
{
"organization": {
"id": "org_01h2xcejqtf2nbrexx3vqjhp41",
"name": "Acme Corporation"
}
}