Creates an invitation and sends an email to the specified address. Returns FAILED_PRECONDITION if the email belongs to an existing organization member. Idempotency: If a PENDING invitation already exists for this email, the existing invitation is resent with a new token and refreshed expiration. Expired or revoked invitations are ignored - a new invitation is created.
Bearer authentication header of the form Bearer
Organization to invite the user to. Pattern: org_[0-9a-hjkmnp-tv-z]{26}
^org_[0-9a-hjkmnp-tv-z]{26}$CreateOrganizationInviteRequest contains the data needed to create an invitation.
Email address of the recipient.
Reserved for future use. Currently, idempotency is based on email matching: if a PENDING invitation exists for the same email in this organization, that invitation is resent rather than creating a duplicate.
255Optional custom message from the sender (max 2000 bytes to support ~500 multibyte characters).
2000Success
CreateOrganizationInviteResponse contains the created invitation.
The created (or existing) invitation.