Claude Platform Docs

Inviti

Crea invito
$ ant organization:invites create
POST/v1/organizations/invites

Invita un utente a unirsi all'organizzazione tramite email.

Elenca gli inviti
$ ant organization:invites list
GET/v1/organizations/invites

Elenca gli inviti dell'organizzazione.

Ottieni invito
$ ant organization:invites retrieve
GET/v1/organizations/invites/{invite_id}

Recupera un invito tramite ID.

Elimina invito
$ ant organization:invites delete
DELETE/v1/organizations/invites/{invite_id}

Elimina un invito in sospeso.

Models
already_member_error_details: object{ error_code }
error_code: "already_member"
cannot_invite_emails_with_unverified_domains_error_details: object{ error_code }
error_code: "cannot_invite_emails_with_unverified_domains"
email_domain_not_allowed_error_details: object{ error_code }
error_code: "email_domain_not_allowed"
invite_already_exists_error_details: object{ error_code }
error_code: "invite_already_exists"
organization_invite: object{ type: "invite", id, accepted_at, 6 more }
Errors
HTTP status 400error_code: "already_member"

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

details: object{ error_code }
error_code: "already_member"
HTTP status 400error_code: "cannot_invite_emails_with_unverified_domains"

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

details: object{ error_code }
error_code: "cannot_invite_emails_with_unverified_domains"
HTTP status 400error_code: "email_domain_not_allowed"

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.

details: object{ error_code }
error_code: "email_domain_not_allowed"
HTTP status 400error_code: "invite_already_exists"

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

details: object{ error_code }
error_code: "invite_already_exists"