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

# Get user token by ID



## OpenAPI

````yaml get /user/{id}/token
openapi: 3.0.0
info:
  title: Tripedge Backend API
  version: 1.0.0
servers:
  - url: /api
    description: API server
security:
  - ApiKeyAuth: []
paths:
  /user/{id}/token:
    get:
      summary: Get user token by ID
      operationId: getUserToken
      parameters:
        - in: path
          name: id
          schema:
            type: string
          required: true
      responses:
        '200':
          description: User token found
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates if the request was successful
                  message:
                    type: string
                    nullable: true
                    description: Response message, null if successful
                  data:
                    type: object
                    properties:
                      token:
                        type: string
                      expiresAt:
                        type: string
                        format: date-time
                    required:
                      - token
                      - expiresAt
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API key for authentication

````