Claude Platform Docs

Inviti

Crea invito
client.Organization.Invites.New(ctx, body) (*OrganizationInvite, error)
POST/v1/organizations/invites

Invita un utente a unirsi all'organizzazione tramite email.

Elenca gli inviti
client.Organization.Invites.List(ctx, query) (*Page[OrganizationInvite], error)
GET/v1/organizations/invites

Elenca gli inviti dell'organizzazione.

Ottieni invito
client.Organization.Invites.Get(ctx, inviteID) (*OrganizationInvite, error)
GET/v1/organizations/invites/{invite_id}

Recupera un invito tramite ID.

Elimina invito
client.Organization.Invites.Delete(ctx, inviteID) (*OrganizationInviteDeleteResponse, error)
DELETE/v1/organizations/invites/{invite_id}

Elimina un invito in sospeso.

Models
type AlreadyMemberErrorDetails struct { ErrorCode }
ErrorCode AlreadyMemberErrorCode
type CannotInviteEmailsWithUnverifiedDomainsErrorDetails struct { ErrorCode }
ErrorCode CannotInviteEmailsWithUnverifiedDomainsErrorCode
type EmailDomainNotAllowedErrorDetails struct { ErrorCode }
ErrorCode EmailDomainNotAllowedErrorCode
type InviteAlreadyExistsErrorDetails struct { ErrorCode }
ErrorCode InviteAlreadyExistsErrorCode
type OrganizationInvite struct { Type: "invite"; ID; AcceptedAt; /* 6 more */ }
Errors
const ErrorCodeAlreadyMember ErrorCode = "already_member"⁠HTTP status 400

The email address already belongs to a user in the organization. The message names the user.

const ErrorCodeCannotInviteEmailsWithUnverifiedDomains ErrorCode = "cannot_invite_emails_with_unverified_domains"⁠HTTP status 400

The email address's domain is not one of the verified domains of the organization's parent organization.

const ErrorCodeEmailDomainNotAllowed ErrorCode = "email_domain_not_allowed"⁠HTTP status 400

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.

const ErrorCodeInviteAlreadyExists ErrorCode = "invite_already_exists"⁠HTTP status 400

A pending invite already exists for the email address. The message names the invite.