Skip to main content
GET
/
repos
/
{owner}
/
{repo}
/
collaborators
/
{collaborator}
Check if a user is a collaborator
curl --request GET \
  --url https://gogs.example.com/api/v1/repos/{owner}/{repo}/collaborators/{collaborator} \
  --header 'Authorization: <api-key>'

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Path Parameters

owner
string
required

Owner of the repository

repo
string
required

Name of the repository

collaborator
string
required

Username to check

Response

User is a collaborator.