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

# Fetch Teammate

> Returns a single teammate by ID or email.



## OpenAPI

````yaml GET /teammates/{TEAMMATE_ID}
openapi: 3.0.1
info:
  title: Alpharun API
  description: Alpharun REST API reference
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.alpharun.com/api/v1
security:
  - bearerAuth: []
paths:
  /teammates/{TEAMMATE_ID}:
    get:
      description: Returns a single teammate by ID or email.
      parameters:
        - name: TEAMMATE_ID
          in: path
          description: >-
            The teammate identifier, which can be either its UUID or its email.
            When using an email, the format should be `alt:email:<email>`.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Teammate details
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      teammate:
                        $ref: '#/components/schemas/Teammate'
              example:
                data:
                  teammate:
                    id: 550e8400-e29b-41d4-a716-446655440000
                    first_name: John
                    last_name: Doe
                    email: john.doe@example.com
                    manager_id: 660e8400-e29b-41d4-a716-446655440001
                    teammate_group_ids:
                      - 770e8400-e29b-41d4-a716-446655440002
        '404':
          description: Teammate not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Teammate:
      type: object
      required:
        - id
        - first_name
        - last_name
        - email
        - manager_id
        - teammate_group_ids
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier of the teammate
        first_name:
          type: string
          description: First name of the teammate
        last_name:
          type: string
          description: Last name of the teammate
        email:
          type: string
          format: email
          description: Email address of the teammate
        manager_id:
          type: string
          format: uuid
          nullable: true
          description: ID of the teammate's manager, or null if no manager is assigned
        teammate_group_ids:
          type: array
          items:
            type: string
            format: uuid
          description: List of teammate group IDs the teammate belongs to
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````