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

# Get My Teams

> Get the current user's team memberships.

Returns all teams the authenticated user is a member of, along with
their role, name, and description.



## OpenAPI

````yaml /openapi/api.json get /v1/users/me/teams
openapi: 3.1.0
info:
  title: Vijil Console API (Combined)
  description: Combined OpenAPI specification for all vijil-console microservices.
  version: 0.1.0
servers: []
security: []
tags:
  - name: Teams
    description: Authentication, users, and team management
  - name: Agent Environment
    description: Agent, persona, policy, and harness management
  - name: Diamond
    description: Evaluation management and report retrieval
  - name: Dome
    description: Protection, guardrails, and telemetry
  - name: Red Team
    description: Red team campaigns
paths:
  /v1/users/me/teams:
    get:
      tags:
        - Teams
        - users
      summary: Get My Teams
      description: |-
        Get the current user's team memberships.

        Returns all teams the authenticated user is a member of, along with
        their role, name, and description.
      operationId: get_my_teams_v1_users_me_teams_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/MembershipWithTeam'
                type: array
                title: Response Get My Teams V1 Users Me Teams Get
components:
  schemas:
    MembershipWithTeam:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        team_id:
          type: string
          format: uuid
          title: Team Id
        user_id:
          type: string
          format: uuid
          title: User Id
        role:
          $ref: '#/components/schemas/TeamRole'
        created_at:
          type: integer
          title: Created At
        updated_at:
          type: integer
          title: Updated At
        team_name:
          type: string
          title: Team Name
        team_description:
          anyOf:
            - type: string
            - type: 'null'
          title: Team Description
      type: object
      required:
        - id
        - team_id
        - user_id
        - role
        - created_at
        - updated_at
        - team_name
        - team_description
      title: MembershipWithTeam
      description: Team membership with team name and description.
    TeamRole:
      type: string
      enum:
        - OWNER
        - ADMIN
        - MEMBER
      title: TeamRole
      description: Team membership roles.

````