Invites changedapi/organization/invites
Nearest release: v2.1.328, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+198added
Lines−108removed
From line
127
where the diff opens
First seen
30 Sep 2026
this site's first read of the page
Recorded edits8to this page, all time
### Errors ### Errors ## Errors ### already_member ### cannot_invite_emails_with_unverified_domains ### email_domain_not_allowed ### invite_already_exists
The whole hunk
from line 127, old and new numbered
/
from line 127
127127
128128 - `"pending"`
129129
130### Errors
131
132Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
133
134Each code below is the value of `error.details.error_code` in the response body.
135
136- `already_member` (HTTP status 400)
137
138 The email address already belongs to a user in the organization. The message names the user.
139
140- `cannot_invite_emails_with_unverified_domains` (HTTP status 400)
141
142 The email address's domain is not one of the verified domains of the organization's parent organization.
143
144- `email_domain_not_allowed` (HTTP status 400)
145
146 The organization restricts invites to an allowed list of email domains, and the list is empty or does not include the email address's domain.
147
148- `invite_already_exists` (HTTP status 400)
149
150 A pending invite already exists for the email address. The message names the invite.
151
152- `org_member_limit_exceeded` (HTTP status 400)
153
154 The organization has reached the member limit that Anthropic set for it. Pending invites count toward the limit.
155
156- `rbac_group_grants_owner_access` (HTTP status 400)
157
158 A role attached to an RBAC Group in the request grants owner access, so this API does not add members to that group (directly or through an invite), remove its members, or delete it. Make the change in the organization's admin settings in Claude.
159
160- `rbac_group_owner_access_unconfirmed` (HTTP status 400)
161
162 The API could not finish checking whether an RBAC Group in the request grants owner access, so it made no change. Retrying the same request will not help. Make the change in the organization's admin settings in Claude.
163
164- `sandbox_egress_restricted` (HTTP status 403)
165
166 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
167
130168### Example
131169
132170```bash
from line 527
489527
490528 ID of the Invite.
491529
530### Errors
531
532Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
533
534Each code below is the value of `error.details.error_code` in the response body.
535
536- `sandbox_egress_restricted` (HTTP status 403)
537
538 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
539
492540### Example
493541
494542```bash
from line 561
513561
514562- `AlreadyMemberErrorDetails object`
515563
516 The email address already belongs to a user in the organization. The message names the user.
517
518564 - `error_code: "already_member"`
519565
520566### Cannot Invite Emails With Unverified Domains Error Details
from line 567
521567
522568- `CannotInviteEmailsWithUnverifiedDomainsErrorDetails object`
523569
524 The email address's domain is not one of the verified domains of the organization's parent organization.
525
526570 - `error_code: "cannot_invite_emails_with_unverified_domains"`
527571
528572### Email Domain Not Allowed Error Details
from line 573
529573
530574- `EmailDomainNotAllowedErrorDetails object`
531575
532 The organization restricts invites to an allowed list of email domains, and the list is empty or does not include the email address's domain.
533
534576 - `error_code: "email_domain_not_allowed"`
535577
536578### Invite Already Exists Error Details
from line 579
537579
538580- `InviteAlreadyExistsErrorDetails object`
539581
540 A pending invite already exists for the email address. The message names the invite.
541
542582 - `error_code: "invite_already_exists"`
543583
544584### Organization Invite
from line 672
632672 - `id: string`
633673
634674 ID of the Invite.
675
676## Errors
677
678### already_member
679
680HTTP status 400
681
682- `"already_member"`
683
684 The email address already belongs to a user in the organization. The message names the user.
685
686 - `details: AlreadyMemberErrorDetails`
687
688 - `error_code: "already_member"`
689
690### cannot_invite_emails_with_unverified_domains
691
692HTTP status 400
693
694- `"cannot_invite_emails_with_unverified_domains"`
695
696 The email address's domain is not one of the verified domains of the organization's parent organization.
697
698 - `details: CannotInviteEmailsWithUnverifiedDomainsErrorDetails`
699
700 - `error_code: "cannot_invite_emails_with_unverified_domains"`
701
702### email_domain_not_allowed
703
704HTTP status 400
705
706- `"email_domain_not_allowed"`
707
708 The organization restricts invites to an allowed list of email domains, and the list is empty or does not include the email address's domain.
709
710 - `details: EmailDomainNotAllowedErrorDetails`
711
712 - `error_code: "email_domain_not_allowed"`
713
714### invite_already_exists
715
716HTTP status 400
717
718- `"invite_already_exists"`
719
720 A pending invite already exists for the email address. The message names the invite.
721
722 - `details: InviteAlreadyExistsErrorDetails`
723
724 - `error_code: "invite_already_exists"`
635725
No line in this hunk matches that.