teams

listTeams

List teams in an organization, with optional search filter and an includeMembers flag that returns each team's members in the same call. Supply EITHER organizationId OR workspaceId (the workspace's parent org is resolved automatically). Use this when the user asks about teams generically (e.g. 'show me my teams') or before assigning a team via updateImprovement(owner_team_id=…). Read-only.

post/tools/listTeams

Request

  • Base URL: https://api.stablebaseline.io/functions/v1/cloud-serve/api/v1
  • URL: https://api.stablebaseline.io/functions/v1/cloud-serve/api/v1/tools/listTeams
  • Auth: HTTP bearer

Request body

organizationIdstring

Organization UUID. Either this OR workspaceId is required.

workspaceIdstring

Workspace UUID. Its parent organization is resolved automatically.

querystring

Optional case-insensitive search on team name/slug.

qstring

Deprecated alias for query, still accepted. Prefer query — that is the name every other list tool uses.

includeMembersboolean

When true, each team gets a members array (user_id, role, joined_at). Capped at 500 total members across the page. Default false.

limitnumber

Max teams per page (1-200, default 50).

offsetnumber

Pagination offset.

Response

Tool result (shape varies per tool — refer to the tool's docs for the exact return value).

object required

Changes

No recorded changes to this operation across all 1 revision of this API.