Skip to main content

Invite To Organization

Invite people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner.

This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See "Secondary rate limits" and "Dealing with secondary rate limits" for details.

External Documentation

To learn more, visit the GitHub documentation.


EmailEmail address of the person you are inviting, which can be an existing GitHub user.
OrgThe name of the organization.
RoleSpecify role for the new member.
Team IDsSpecify IDs for the teams you want to invite new members to.

Example Output

"value": {
"created_at": "2016-11-30T06:46:10-08:00",
"email": "",
"id": 1,
"invitation_teams_url": "",
"inviter": {
"avatar_url": "",
"events_url": "{/privacy}",
"followers_url": "",
"following_url": "{/other_user}",
"gists_url": "{/gist_id}",
"gravatar_id": "",
"html_url": "",
"id": 1,
"login": "other_user",
"node_id": "MDQ6VXNlcjE=",
"organizations_url": "",
"received_events_url": "",
"repos_url": "",
"site_admin": false,
"starred_url": "{/owner}{/repo}",
"subscriptions_url": "",
"type": "User",
"url": ""
"login": "monalisa",
"node_id": "MDQ6VXNlcjE=",
"role": "direct_member",
"team_count": 2

Automation Library Example

Onboarding Team Member to Project

Automation LibraryPreview this Automation on desktop