Claude Platform Docs

초대

초대 생성
client.Organization.Invites.New(ctx, body) (*OrganizationInvite, error)
POST/v1/organizations/invites

이메일로 사용자를 조직에 초대합니다.

초대 목록 조회
client.Organization.Invites.List(ctx, query) (*Page[OrganizationInvite], error)
GET/v1/organizations/invites

조직의 초대를 나열합니다.

초대 조회
client.Organization.Invites.Get(ctx, inviteID) (*OrganizationInvite, error)
GET/v1/organizations/invites/{invite_id}

ID로 초대를 조회합니다.

초대 삭제
client.Organization.Invites.Delete(ctx, inviteID) (*OrganizationInviteDeleteResponse, error)
DELETE/v1/organizations/invites/{invite_id}

대기 중인 초대를 삭제합니다.

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.