cURL
curl --request GET \ --url https://gogs.example.com/api/v1/repos/{owner}/{repo}/collaborators/{collaborator} \ --header 'Authorization: <api-key>'
Returns 204 if the user is a collaborator, 404 if not.
Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Owner of the repository
Name of the repository
Username to check
User is a collaborator.