Inviting a user with the admin role is not permitted via the API.
Explore documentation
Invite a team member
Invites a member of your organization or completely new team member to your team.
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.
An invitation was sent to the user.
Response body
The user is already a member of the team.
Response body
The request was invalid (e.g., invalid email or role, or quota limits reached).
Response body
The provided email address is invalid.
Response body
The email field is missing or blank.
Response body
Quota limits prevent inviting more members.
Response body
Too many invitations sent, rate limit exceeded.
Response body
Inviting an admin is forbidden.
Response body
Example cURL