Create Team Invite
createTeamInviteInvite one person to a team. Pass processId to invite them to a specific Clarity process instead of the whole team (that requires the team:clarity-member role). Creating the invitation does NOT email anyone — call sendTeamInviteEmail with the returned id to deliver it, or use bulkCreateTeamInvites, which creates and emails in one step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Team role to grant. One of: team:owner, team:superadmin, team:admin (deprecated), team:manager, team:builder, team:member, team:clarity-member. You cannot grant a role above your own. Process invitations must use team:clarity-member. | |
| Yes | Email address of the person to invite. | ||
| team_id | No | Duvo team UUID to operate on. API keys are pinned to a single team — omit this (it falls back to the key's team) or pass that same team; a different team is rejected. OAuth callers, who can span multiple teams, should pass the target team here. | |
| processId | No | Invite the person to this Clarity process rather than the whole team. Requires the team:clarity-member role. | |
| process_role_id | No | Configured Process role to assign alongside the Clarity invitation. Requires processId; the role must belong to that Process. | |
| interviewRequested | No | Whether to ask the person to record an interview about the process. Defaults to true. Pass false to give Clarity Member access to the process only; that requires processId and the clarity_invite_without_interview feature flag. Inviting someone already asked for an interview with false keeps the request. |