Send Team Invitation
Send an invitation to a user to join a team with specified role and payment settings
Overview
Send an invitation to a user to join a team. This endpoint allows team owners and managers to invite new members, set their roles, and configure payment and time tracking settings.Request Body
1"john.doe@example.com""owner", "manager", "member"Example: "member""Senior Developer"pay_type.- If
pay_typeis"hourly": hourly rate - If
pay_typeis"fixed": fixed amount per pay period
0.000.0048"hourly", "fixed"Default: "hourly"Example: "hourly""weekly", "bi-weekly", "twice per month", "monthly"Default: "weekly"Example: "weekly""192.168.1.1""Mozilla/5.0..."Response
Example Request
Example Request (JavaScript)
Example Response
Example Request - Fixed Pay Type
For monthly fixed salary:Error Responses
Pay Rate Calculations
Whenpay_type is "fixed", the system automatically calculates an hourly rate based on the pay period:
- Weekly:
hourly_rate = pay_rate / 40 - Bi-weekly:
hourly_rate = pay_rate / 80 - Twice per month:
hourly_rate = pay_rate / 80 - Monthly:
hourly_rate = pay_rate / 160
Notes
- Permissions required: Only team owners and managers can send invitations
- Team features: The invitation process depends on your team’s feature settings (sends email invitations or adds members directly)
- Currency: Default currency is USD for all payment calculations
- Time tracking: Weekly limits and allowed working days are automatically configured for the invited user
- Pending status: Invitations are created with “pending” status until the user accepts
- Terms agreement: If your workspace has terms and conditions, they are automatically accepted on behalf of the inviter
- Audit trail: IP address and user agent can be provided for security and audit purposes
- Payment configuration: Payment settings include pay rate, bill rate, pay type, and pay period
- Time tracking limits: Weekly limits and daily tracking preferences are configured automatically
- Default working days: All days (Sunday-Saturday) are enabled by default
Related Endpoints
- Get Team Invitations - List pending invitations
- Cancel Invitation - Cancel a pending invitation
- Resend Invitation - Resend invitation email
- Get Team Members - List all team members
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The ID of the team to invite the user to
1
The email address of the user to invite
"john.doe@example.com"
The role to assign to the invited user
owner, manager, member "member"
The job title for the invited user
"Senior Developer"
The pay rate (hourly or fixed amount depending on pay_type)
50
The billable rate (hourly rate charged to clients)
75
Maximum hours per week the user can work
40
Type of payment structure
hourly, fixed "hourly"
Frequency of payment
weekly, bi-weekly, twice per month, monthly "weekly"
IP address of the inviter (for audit trail)
"192.168.1.1"
User agent string of the inviter (for audit trail)
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
Response
Invitation sent successfully
"invitation sent successfully"