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

# Get User By ID

Get a user by ID.


## OpenAPI

````yaml get /users/{id}
openapi: 3.0.0
info:
  title: Tapti Fusion API
  description: API for the Tapti Fusion platform
  version: '1.0'
  contact: {}
servers:
  - url: https://api.tapti.ai
security: []
tags: []
paths:
  /users/{id}:
    get:
      tags:
        - Users
      summary: Get a user by ID
      operationId: getUserById
      parameters:
        - name: id
          required: true
          in: path
          description: The ID of the user to retrieve
          schema:
            example: 690739f7-3e1b-4ceb-a439-23bd9c7ae573
      responses:
        '200':
          description: User retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetUserByIdResponseAdminDto'
        '404':
          description: User not found
        '500':
          description: Internal Server Error
components:
  schemas:
    GetUserByIdResponseAdminDto:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the user
          example: 690739f7-3e1b-4ceb-a439-23bd9c7ae573
        created_at:
          format: date-time
          type: string
          description: The timestamp when the user was created
          example: '2024-12-09T19:15:03.738Z'
        updated_at:
          format: date-time
          type: string
          description: The timestamp when the user was last updated
          example: '2024-12-09T19:15:03.738Z'
        name:
          type: string
          description: The name of the user
          example: John Doe
        email:
          type: string
          description: The email of the user
          example: john.doe@example.com
        phone:
          type: string
          description: The phone number of the user
          example: '1234567890'
          nullable: true
        tenant_app_id:
          type: string
          description: The ID of the tenant app this user belongs to
          example: 2bac016b-ad8f-4bf9-afb3-a63814bca95f
        accounts:
          description: The user accounts associated with this user
          type: array
          items:
            $ref: '#/components/schemas/UserAccountDto'
      required:
        - id
        - created_at
        - updated_at
        - name
        - email
        - phone
        - tenant_app_id
        - accounts
    UserAccountDto:
      type: object
      properties:
        id:
          type: string
          description: User Account ID
          example: 123e4567-e89b-12d3-a456-426614174000
        user_platform:
          type: string
          description: Platform type
          enum:
            - YOUTUBE
            - TIKTOK
            - INSTAGRAM
            - INSTAPRO
            - FACEBOOK
            - X
            - LINKEDIN
          example: YOUTUBE
        platform_account_id:
          type: string
          description: Platform-specific account identifier
          example: UC_12345678
        display_name:
          type: string
          description: Account display name
          example: John Doe
      required:
        - id
        - user_platform

````