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

# Get team by ID

> Retrieves detailed information about a specific team by its unique identifier.



## OpenAPI

````yaml /api-reference/teams/openapi.json get /teams/{teamId}
openapi: 3.0.0
info:
  title: Teams
  version: 1.0.0
  description: API endpoints for managing teams in the 16TMS platform
servers:
  - url: https://api.16tms.com/api/v1
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /teams/{teamId}:
    get:
      summary: Get team by ID
      description: >-
        Retrieves detailed information about a specific team by its unique
        identifier.
      operationId: getTeamById
      parameters:
        - name: teamId
          in: path
          description: The unique identifier of the team
          required: true
          schema:
            type: string
            format: uuid
          example: f0ae597c-a8e9-455c-96ea-d54cf9e98c23
      responses:
        '200':
          description: Team retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTeamByIdResponse'
              example:
                success: true
                message: Team fetched successfully
                data:
                  teamId: b12527ac-34c4-49a5-883e-682f93c51256
                  name: Phoenix_Rising
                  description: null
                  teamSize: 4
                  ownerId: 1869dfa2-e04e-4d4d-8fe6-fa168d90458a
                  ownerName: DragonSlayer
                  logo: https://api.dicebear.com/7.x/identicon/svg?seed=Phoenix
                  coverImage: null
                  gameId: 70383923-1d87-45ff-b2e5-9303e607818b
                  gameName: Free Fire
                  gameImage: >-
                    https://metaninzamedia.blob.core.windows.net/media/games/20260210065312_free-fire-logo-png_seeklogo-624195.webp
                  members:
                    - userId: 1869dfa2-e04e-4d4d-8fe6-fa168d90458a
                      externalId: null
                      email: ''
                      username: dragonslayer_bc24ba
                      role: 1
                      joinedAt: '2026-02-10T07:04:35.165578Z'
                      profileImage: null
                      gameId: 70383923-1d87-45ff-b2e5-9303e607818b
                      userGameId: DragonSlayer
                    - userId: 2dd31522-8ca3-4578-8b8f-45a0502ab1ce
                      externalId: null
                      email: ''
                      username: icequeen_c184c5
                      role: 3
                      joinedAt: '2026-02-10T07:04:35.165578Z'
                      profileImage: null
                      gameId: 70383923-1d87-45ff-b2e5-9303e607818b
                      userGameId: IceQueen
                    - userId: 9e029a35-6590-4bbd-a214-7e82cf24c30b
                      externalId: null
                      email: ''
                      username: shadowninja_eda2bd
                      role: 3
                      joinedAt: '2026-02-10T07:04:35.165578Z'
                      profileImage: null
                      gameId: 70383923-1d87-45ff-b2e5-9303e607818b
                      userGameId: ShadowNinja
                    - userId: 5f84c483-0b97-485a-b6c5-30dc560087f3
                      externalId: null
                      email: ''
                      username: thunderbolt_486936
                      role: 3
                      joinedAt: '2026-02-10T07:04:35.165578Z'
                      profileImage: null
                      gameId: 70383923-1d87-45ff-b2e5-9303e607818b
                      userGameId: ThunderBolt
                meta:
                  traceId: 00-2e4dca3267c950b579bfb0ce6b379070-458a412b8c8e329e-00
                  elapsedMs: 4.42
                  serverTimestamp: '2026-02-17T10:29:58.3046903Z'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Team not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    GetTeamByIdResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Indicates if the request was successful
          example: true
        message:
          type: string
          description: A message describing the result of the operation
          example: Team retrieved successfully
        data:
          $ref: '#/components/schemas/TeamDetail'
        meta:
          type: object
          properties:
            traceId:
              type: string
              description: Unique trace identifier for debugging purposes
              example: 00-30eb584edc33d3b3c6abc2f2a48d531b-c7db91fb01d98955-00
            elapsedMs:
              type: number
              description: Time taken to process the request in milliseconds
              example: 15.5
            serverTimestamp:
              type: string
              format: date-time
              description: Server timestamp when the response was generated
              example: '2026-02-09T13:25:26.0306215Z'
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Indicates if the request was successful
          example: false
        message:
          type: string
          description: Error message describing what went wrong
          example: Invalid API key
        errors:
          type: array
          description: Detailed error information
          items:
            type: object
            properties:
              field:
                type: string
                description: The field that caused the error
                example: name
              message:
                type: string
                description: Description of the error
                example: This field is required
        meta:
          type: object
          properties:
            traceId:
              type: string
              description: Unique trace identifier for debugging purposes
            serverTimestamp:
              type: string
              format: date-time
              description: Server timestamp when the error occurred
    TeamDetail:
      type: object
      properties:
        teamId:
          type: string
          format: uuid
        name:
          type: string
        description:
          type: string
          nullable: true
        teamSize:
          type: integer
        ownerId:
          type: string
          format: uuid
        ownerName:
          type: string
        logo:
          type: string
          nullable: true
        coverImage:
          type: string
          nullable: true
        gameId:
          type: string
          format: uuid
        gameName:
          type: string
        gameImage:
          type: string
          nullable: true
        members:
          type: array
          items:
            $ref: '#/components/schemas/TeamMember'
    TeamMember:
      type: object
      properties:
        userId:
          type: string
          format: uuid
          description: Unique identifier for the user
          example: 302cb943-26a3-40e1-92f4-216ac2b264d7
        externalId:
          type: string
          description: External identifier for the user
          nullable: true
          example: null
        email:
          type: string
          format: email
          description: Email address of the team member
          example: ''
        username:
          type: string
          description: Username of the team member
          example: dhruvpatel
        role:
          $ref: '#/components/schemas/TeamRole'
        joinedAt:
          type: string
          format: date-time
          description: Timestamp when the member joined the team
          example: '2026-02-09T13:22:47.392121Z'
        profileImage:
          type: string
          format: uri
          description: URL to the member's profile image
          example: null
          nullable: true
        gameId:
          type: string
          format: uuid
          description: ID of the game
          example: 3b1dd428-f288-4654-beff-ae523005f47a
        userGameId:
          type: string
          description: User's in-game ID
          example: bossxdhruv
    TeamRole:
      type: integer
      description: Role of the member in the team (1 = Owner, 3 = Member)
      enum:
        - 1
        - 3
      x-enum-varnames:
        - Owner
        - Member
      x-enum-descriptions:
        - Team Owner
        - Team Member
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: >-
        API key for authentication. You can generate this from the 16TMS
        console.

````