Invites an existing external user to join an enterprise.
The existing user can not be part of another enterprise and must already have a Box account. Once invited, the user will receive an email and are prompted to accept the invitation within the Box web application.
This method requires the “Manage An Enterprise” scope enabled for the application, which can be enabled within the developer console.
This operation is performed by calling function createInvite.
See the endpoint docs at API Reference.
await client.invites.createInvite({
enterprise: {
id: currentUser.enterprise!.id!,
} satisfies CreateInviteRequestBodyEnterpriseField,
actionableBy: {
login: email,
} satisfies CreateInviteRequestBodyActionableByField,
} satisfies CreateInviteRequestBody);
CreateInviteRequestBody
CreateInviteOptionalsInputThis function returns a value of type Invite.
Returns a new invite object.
Returns the status of a user invite.
This operation is performed by calling function getInviteById.
See the endpoint docs at API Reference.
await client.invites.getInviteById(invitation.id);
string
GetInviteByIdOptionalsInputThis function returns a value of type Invite.
Returns an invite object.