Inviting users as the admin role is not permitted via the API, whether by role or role_id.
Explore documentation
Invite a team member
Invites a new user to your organization. Invites existing team members to more teams.
Assign a role by name with role, or by ID with role_id — role_id also supports custom roles (get IDs from the List roles API).
If the user is already a member, it returns the existing member's details with a 200 OK status.
Query parameters
Required if using a global API token to specify the team.
Headers
Bearer $TOKEN
application/json
Body parameters
The email address of the user to invite.
The role to assign to the user. Allowed values: responder, member, team_lead, billing_admin. Defaults to responder. Use role_id to assign a custom role.
The ID of the role to assign, including custom roles, as returned by the List roles API. Provide either role or role_id. If both are given they must reference the same role.
An invitation was sent to the user.
Response body
The user is already a member of the team.
Response body
Authentication failed due to a missing or invalid token.
Response body
Inviting an admin is forbidden.
Response body
The provided email address is invalid.
Response body
Too many invitations sent, rate limit exceeded.
Response body
Example cURL