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

# List teams

> Lists active teams for the authenticated user's company. Requires the `user_management.change_content_access` permission.



## OpenAPI

````yaml /api-reference/openapi.json get /teams
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: >-
    API for interacting with Corgea's scanning and vulnerability management
    features
servers:
  - url: https://www.corgea.app/api/v1
    description: Production server
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /teams:
    get:
      tags:
        - Teams
      summary: List teams
      description: >-
        Lists active teams for the authenticated user's company. Requires the
        `user_management.change_content_access` permission.
      operationId: listTeams
      parameters:
        - name: search
          in: query
          description: Filter teams by team name or member name or email.
          schema:
            type: string
        - name: page
          in: query
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: page_size
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 50
            default: 20
      responses:
        '200':
          description: Teams retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    TeamListResponse:
      type: object
      required:
        - status
        - teams
        - page
        - total_pages
        - total_teams
      properties:
        status:
          type: string
          enum:
            - ok
        teams:
          type: array
          items:
            $ref: '#/components/schemas/Team'
        page:
          type: integer
        total_pages:
          type: integer
        total_teams:
          type: integer
    Team:
      type: object
      required:
        - id
        - name
        - active
        - members
        - project_ids
        - project_tags
        - repo_url_patterns
        - project_count
        - created_at
        - updated_at
      properties:
        id:
          type: integer
        name:
          type: string
        active:
          type: boolean
        members:
          type: array
          items:
            $ref: '#/components/schemas/TeamMember'
        project_ids:
          type: array
          description: Projects assigned explicitly to the team.
          items:
            type: integer
        project_tags:
          type: array
          description: A project matches when it contains any listed tag.
          items:
            type: string
        repo_url_patterns:
          type: array
          description: >-
            A project matches when its repository URL contains any listed
            fragment, case-insensitively.
          items:
            type: string
            minLength: 3
        project_count:
          type: integer
          description: >-
            Distinct projects currently resolved through explicit assignment or
            selectors.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    TeamMember:
      type: object
      required:
        - id
        - email
        - first_name
        - last_name
      properties:
        id:
          type: integer
        email:
          type: string
          format: email
        first_name:
          type: string
        last_name:
          type: string
  responses:
    Unauthorized:
      description: Invalid or missing token
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Missing or invalid authorization header
    Forbidden:
      description: Permission denied or feature unavailable
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Permission denied
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: API key for authentication
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2 access token (JWT) in the Authorization header

````