Repository Invitations API is now official
The Repository Invitations API is now part of the official GitHub API. You will no longer be able to directly add a user to a repository. Instead, the user will receive an invitation, which they can accept or decline via email, notification, or API endpoint.
For details on how to use the repository invitations endpoints, please refer to the API documentation.
If you have any questions or feedback, please get in touch with us.