Skip to content

The people with a role on some of a workspace's repositories who are not its members, each with the repositories they can reach and their role on each.

GET/workspaces/{workspace}/outside_collaborators

Owners only.

By username, each with the repositories they have a role on. Refused with 403 for anyone but an owner. See Access and roles.

  • Authentication: Required. Send an access token as Authorization: Bearer.
  • MCP tool: access with action list_outside_collaborators, and the same inputs
  • Scope: An access token needs access:read.
Name Type Required Description
workspace string Yes The workspace’s slug, e.g. “flagon-io”.
curl https://api.g1t.sh/workspaces/flagon-io/outside_collaborators \
-H "Authorization: Bearer $G1T_TOKEN"

A successful request answers 200 with:

[
{
"username": "ada",
"name": "Ada Lovelace",
"avatar": null,
"repos": [
{
"repo": "flagon-io/docs",
"role": "write"
},
{
"repo": "flagon-io/hello",
"role": "triage"
}
]
}
]

A failed request answers with one of these statuses and a body like {"error": {"code": "not_found", "message": "Repository not found."}}. See errors.

Status Code When
401 unauthenticated A token is required, or the one sent is not valid.
403 forbidden The token is valid but not allowed to do this, such as a member-only change or an agent token outside its repository.
404 not_found It does not exist, or you cannot see it.
422 invalid The input is not valid. message says which field and why.