> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.select.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# List teams

> Retrieve all teams within an organization



## OpenAPI

````yaml https://api.select.dev/public_openapi get /api/{organization_id}/teams
openapi: 3.1.0
info:
  title: SELECT API (v1)
  version: 0.1.0
servers:
  - url: https://api.select.dev/
    description: SELECT API
security: []
paths:
  /api/{organization_id}/teams:
    get:
      tags:
        - teams
        - public-api
      summary: List teams
      description: Retrieve all teams within an organization
      operationId: list_teams_route_api__organization_id__teams_get
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            title: Organization Id
        - name: limit
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                maximum: 1000
                minimum: 1
              - type: 'null'
            default: 100
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 0
              - type: 'null'
            default: 0
            title: Offset
        - name: all_user_team
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            title: All User Team
        - name: order_by
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: '-created_at'
            title: Order By
        - name: name__ilike
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Name  Ilike
        - name: name__not_ilike
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Name  Not Ilike
        - name: name__isnull
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            title: Name  Isnull
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicListTeamsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
        - HTTPBearer: []
components:
  schemas:
    PublicListTeamsResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/PublicTeam'
          type: array
          title: Items
          description: List of teams
        remaining_count:
          type: integer
          title: Remaining Count
          description: Number of teams remaining after pagination
        limit:
          type: integer
          title: Limit
          description: Maximum number of items returned
        offset:
          type: integer
          title: Offset
          description: Number of items skipped
      type: object
      required:
        - items
        - remaining_count
        - limit
        - offset
      title: PublicListTeamsResponse
      description: Response model for listing teams with pagination metadata.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PublicTeam:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: The unique identifier of the team
        name:
          type: string
          title: Name
          description: The name of the team
        is_all_users:
          type: boolean
          title: Is All Users
          description: >-
            Whether this is the special 'all users' team that automatically
            includes all organization members
        default_member_role:
          $ref: '#/components/schemas/TeamRoleEnum'
          description: Default role assigned to new members when they are added to the team
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the team was created
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: When the team was last updated
      type: object
      required:
        - id
        - name
        - is_all_users
        - default_member_role
        - created_at
        - updated_at
      title: PublicTeam
      description: Basic team information returned by public API.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    TeamRoleEnum:
      type: string
      enum:
        - editor
        - viewer
      title: TeamRoleEnum
      description: >-
        Defines the permission level of a user within a team:

        - EDITOR: Can manage team resources, create and modify shared items, and
        change settings

        - VIEWER: Can view team resources and have limited interaction
        capabilities
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````