API changes for Repository Invitations

We announced repository invitation functionality on May 23. Using the site, you can invite collaborators to work on your repository. Invitees will receive an email with the invitation and have the option to accept or decline.

We have now have endpoints for managing repository invitations for both repository administrators and invitation recipients through the GitHub API. You can enable these changes during the preview period by providing a custom media type in the Accept header:

application/vnd.github.swamp-thing-preview

For example:

curl "https://api.github.com/repos/github/hubot/invitations" \
  -H 'Authorization: token TOKEN' \
  -H "Accept: application/vnd.github.swamp-thing-preview"

You can learn more about the new endpoints in the updated Collaborators and new Repository Invitations documentation.

If you have any questions or feedback, please let us know.