Skip to content

One workspace you belong to: its name, description and member count, what every member gets on each of its repositories (base_permission), who may create its teams (team_creation: members or owners), its member privileges (members_can_create_public_repositories, members_can_create_private_repositories, members_can_change_repo_visibility, members_can_delete_repositories, members_can_invite_outside_collaborators), and whether it requires two-factor authentication (two_factor_requirement_enabled).

GET/workspaces/{workspace}

Members only.

team_creation is who may create its teams: members (any member, the default) or owners. The members_can_… fields are its member privileges, and two_factor_requirement_enabled whether it requires two-factor authentication. Change it, and the rest, with PATCH /workspaces/{workspace}. 404 for anyone who is not a member. See Workspaces.

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

A successful request answers 200 with:

{
"id": "wsp_01m43teqa9em6bje0bhvdj4jkb",
"slug": "acme-labs",
"name": "Acme Labs",
"description": "Rockets, and the software that flies them.",
"created_at": "2026-10-04T16:02:51.337Z",
"member_count": 3,
"base_permission": "write",
"team_creation": "members",
"members_can_create_public_repositories": true,
"members_can_create_private_repositories": true,
"members_can_change_repo_visibility": true,
"members_can_delete_repositories": false,
"members_can_invite_outside_collaborators": true,
"two_factor_requirement_enabled": false
}

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.