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

# List Teams

> Get all teams the authenticated user belongs to.

Returns teams with:
- Member count
- User's role in each team
- Pagination metadata

Query parameters:
- page: Page number (default: 1)
- limit: Items per page (default: 50, max: 100)



## OpenAPI

````yaml GET /v1/teams
openapi: 3.1.0
info:
  title: Data Raven API
  description: Cloud-to-cloud data transfer platform powered by RClone
  version: 0.5.0
servers: []
security: []
paths:
  /v1/teams:
    get:
      tags:
        - Teams
      summary: List Teams
      description: |-
        Get all teams the authenticated user belongs to.

        Returns teams with:
        - Member count
        - User's role in each team
        - Pagination metadata

        Query parameters:
        - page: Page number (default: 1)
        - limit: Items per page (default: 50, max: 100)
      operationId: list_teams_v1_teams_get
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            description: Page number
            default: 1
            title: Page
          description: Page number
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Items per page
            default: 50
            title: Limit
          description: Items per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_TeamResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    PaginatedResponse_TeamResponse_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/TeamResponse'
          type: array
          title: Data
        pagination:
          $ref: '#/components/schemas/PaginationResponse'
      type: object
      required:
        - data
        - pagination
      title: PaginatedResponse[TeamResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TeamResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        subscription_tier:
          $ref: '#/components/schemas/SubscriptionTier'
        created_at:
          type: string
          format: date-time
          title: Created At
        member_count:
          type: integer
          title: Member Count
        user_role:
          $ref: '#/components/schemas/UserRole'
      type: object
      required:
        - id
        - name
        - subscription_tier
        - created_at
        - member_count
        - user_role
      title: TeamResponse
      description: Schema for team in list responses.
    PaginationResponse:
      properties:
        page:
          type: integer
          title: Page
        limit:
          type: integer
          title: Limit
        total:
          type: integer
          title: Total
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - page
        - limit
        - total
        - total_pages
      title: PaginationResponse
      description: Pagination metadata in responses.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    SubscriptionTier:
      type: string
      enum:
        - free
        - pro
      title: SubscriptionTier
      description: Subscription tiers.
    UserRole:
      type: string
      enum:
        - viewer
        - operator
        - admin
        - owner
      title: UserRole
      description: >-
        User roles within teams (hierarchical).


        - OWNER (4): Full control including team deletion

        - ADMIN (3): All operations except team deletion

        - OPERATOR (2): Day-to-day operations (run jobs, view logs), no
        setup/config

        - VIEWER (1): Read-only audit access
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````