Pular para o conteúdo

Invite Team Member

POST
/api/v1/team/invite

Invite a new team member to the tenant.

Requires: OWNER or ADMIN role. If user doesn’t exist, creates a new user account. If user exists, adds them to the tenant with specified role.

X-Tenant-Id
required
X-Tenant-Id
integer
TeamMemberInviteRequest

Schema for inviting a new team member.

object
email
required
Email
string format: email
full_name
required
Full Name
string
role
required
UserRole

User roles within a tenant.

string
Allowed values: owner admin agent viewer

Successful Response

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string