Overview
Invitations allow you to add members to your organization. When you create an invitation, the recipient receives an email with a link to accept. Invitations expire after 7 days.Prerequisites
- An organization ID
- A valid API key with permission to manage organization members
Code Example
Response
Options
| Parameter | Type | Description |
|---|---|---|
organizationId | string | Required. The organization to invite to |
email | string | Required. Email address of the recipient |
message | string | Optional. Custom message (max 2000 bytes) |
idempotencyKey | string | Optional. Client-provided key for safe retries |
Idempotency
If you include anidempotency_key, duplicate requests within 24 hours return the original response without resending the email. This is useful for retry logic.
Listing Invitations
Check pending invitations for your organization:Revoking an Invitation
Cancel a pending invitation:Error Handling
| Error | Cause | Solution |
|---|---|---|
FAILED_PRECONDITION | Email belongs to existing member | User is already in the organization |
PERMISSION_DENIED | Insufficient permissions | Ensure your account can manage organization members |
NOT_FOUND | Invalid organization ID | Verify the organization exists |