Skip to content
GitmoapAPIBeta
Organizeteams
GET/user/teams

The teams you are on, in every organization.

list_my_teams
  • team:read
    A token needs the team:read scope: See an organization's teams, who is on them and what they can doGranted by read_api, write_api.Every operation this scope unlocks
  • Single-resource

    x-gitmoap-isolation: {"kind":"single_or_self_scoped"}

  • Paginated
    Pass the next_token a page returns to get the next one.

Only your own places on teams are listed, never anyone else's.

Parameters

Query
  • limitinteger · int64optionalMaximum number of teams, 1-100 (default 50)
  • next_tokenstringoptionalPagination token

Responses

200Your teams, earliest joined firstapplication/json
  • teamsarray of MyTeam
    • The MyTeam schema
    • roleTeamMemberRolemembermaintainerA member's place on a team. Maintainers manage the roster.
    • teamTeam
      • The Team schema
      • created_atstring · date-time
      • descriptionstring
      • member_countinteger · int64People on the team, counting any whose place has lapsed but not yet been removed.
      • namestring
      • organization_idGroupId (string · uuid)The organization's top-level group.
      • roster_sourceTeamRosterSourcemanualidentity_providerscimWho keeps a team's roster: people, through the API, or an identity provider.
      • slugEntityName (string)
      • team_idTeamId (string · uuid)
      • updated_atstring · date-time
      • created_byActorSummary or nulloptional
      • idp_groupstring or nulloptionalThe identity provider's group this team mirrors. Absent for a team whose roster is kept by hand.
    • expires_atstring · date-time or nulloptional
  • next_tokenstring or nulloptional
200 exampleSynthesized example
{
"teams": [
{
"role": "member",
"team": {
"created_at": "2026-10-16T20:54:45Z",
"description": "Renders each region as density contours of its operations.",
"member_count": 2,
"name": "payments-api",
"organization_id": "4c1d8e2f-6a3b-4f90-b7c5-1e2d3c4b5a69",
"roster_source": "manual",
"slug": "slug-7eb5",
"team_id": "4de08adb-97e4-4ea9-97fa-c274a49bf1ac",
"updated_at": "2026-10-14T06:19:57Z"
}
},
{
"role": "member",
"team": {
"created_at": "2026-10-08T12:22:35Z",
"description": "Renders each region as density contours of its operations.",
"member_count": 4,
"name": "payments-api",
"organization_id": "4c1d8e2f-6a3b-4f90-b7c5-1e2d3c4b5a69",
"roster_source": "manual",
"slug": "slug-1f3c",
"team_id": "531c5a72-eadb-4793-adca-d0c43f087007",
"updated_at": "2026-10-14T03:32:22Z"
}
}
],
"next_token": "next-token-8d85"
}
400Invalid pagination tokenapplication/json
Error codes
  • BAD_REQUESTThe request is malformed: a parameter or a body field is not a well-formed value of its type
  • errorErrorBody
    • The ErrorBody schema
    • codestringThe coarse category, tied to the status: NOT_FOUND, CONFLICT, INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all.
    • messagestringWhat went wrong, for a person. Written to be read, not parsed: match on reason or code.
    • fieldstring or nulloptionalOn a 400 that refused one field's value, the field, as its JSON path: email, items[0].name. Put the message under that input. Absent on every other error.
    • reasonstring or nulloptionalThe specific code, when the error has one: LAST_ORGANIZATION_OWNER, BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
400 exampleSynthesized example
{
"error": {
"code": "code-8b4f",
"message": "Label every synthesized example"
}
}
401Authentication requiredapplication/json
Error codes
  • UNAUTHORIZEDNo credential was sent, or the one sent is invalid, expired or revoked
  • errorErrorBody
    • The ErrorBody schema
    • codestringThe coarse category, tied to the status: NOT_FOUND, CONFLICT, INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all.
    • messagestringWhat went wrong, for a person. Written to be read, not parsed: match on reason or code.
    • fieldstring or nulloptionalOn a 400 that refused one field's value, the field, as its JSON path: email, items[0].name. Put the message under that input. Absent on every other error.
    • reasonstring or nulloptionalThe specific code, when the error has one: LAST_ORGANIZATION_OWNER, BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
401 exampleSynthesized example
{
"error": {
"code": "code-b45c",
"message": "Stream pipeline status into the run header"
}
}
403The token lacks the scopeapplication/json
Error codes
  • FORBIDDENYou are signed in but may not do this here; reason names the permission or the rule that refused it
  • INSUFFICIENT_SCOPEThe access token lacks the scope this operation needs; required_scope names it
  • PERMISSION_REQUIREDYou need a permission you do not hold here; the message names it
  • errorErrorBody
    • The ErrorBody schema
    • codestringThe coarse category, tied to the status: NOT_FOUND, CONFLICT, INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all.
    • messagestringWhat went wrong, for a person. Written to be read, not parsed: match on reason or code.
    • fieldstring or nulloptionalOn a 400 that refused one field's value, the field, as its JSON path: email, items[0].name. Put the message under that input. Absent on every other error.
    • reasonstring or nulloptionalThe specific code, when the error has one: LAST_ORGANIZATION_OWNER, BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and on code otherwise.
    • required_scopestring or nulloptionalThe scope the access token was missing, on INSUFFICIENT_SCOPE.
    • violationsanyoptionalPresent on the structured-validation errors (PROVIDER_VALIDATION_FAILED per-node, PIPELINE_VALIDATION_FAILED DAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
403 exampleSynthesized example
{
"error": {
"code": "code-c568",
"message": "Pin a page's payload to the build that rendered it"
}
}

CLI

gitmoap teams list-my-teams

  • --limitnumberoptionalMaximum number of teams, 1-100 (default 50)
  • --next-tokenstringoptionalPagination token

Used in these guides