Send an invitation
Sends an invitation in your WorkOS environment.
POST
Body
Arguments
stringrequired
The email address of the recipient.
string
The ID of the organization that the recipient will join.
string
The role that the recipient will receive when they join the organization in the invitation.
number
How many days the invitations will be valid for. Must be between 1 and 30 days. Defaults to 7 days if not specified.
string
The ID of the user who invites the recipient. The invitation email will mention the name of this user.
string
The locale to use when rendering the invitation email. See supported locales.
Field selectionChoose which fields should be included in the response. Learn more
string
Comma-separated response fields to include.