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

# Yêu cầu token xác thực với chữ ký

> Ký một thông điệp với định dạng `{signText}{time}`, trong đó signText là "Sign in to raydium.io: " và time là dấu thời gian Unix hiện tại tính bằng giây. Ví phải ký thông điệp này và gửi chữ ký để nhận token JWT.



## OpenAPI

````yaml /vi/api-reference/openapi/launch-auth-v1.yaml post /request-token
openapi: 3.0.3
info:
  title: API Xác Thực Raydium Launch
  description: >-
    Quản lý xác thực ví cho các API LaunchLab và Forum. Cấp các token JWT sau
    khi xác minh chữ ký ví ed25519. Token là bắt buộc để đăng bình luận và quản
    lý nội dung trên API Forum.
  version: 1.0.0
servers:
  - url: https://launch-auth-v1.raydium.io
    description: Mainnet
  - url: https://launch-auth-v1-devnet.raydium.io
    description: Devnet
security: []
tags:
  - name: Token Management
    description: Yêu cầu và xác thực token xác thực
  - name: Utilities
    description: Các endpoint kiểm tra tình trạng
paths:
  /request-token:
    post:
      tags:
        - Token Management
      summary: Yêu cầu token xác thực với chữ ký
      description: >-
        Ký một thông điệp với định dạng `{signText}{time}`, trong đó signText là
        "Sign in to raydium.io: " và time là dấu thời gian Unix hiện tại tính
        bằng giây. Ví phải ký thông điệp này và gửi chữ ký để nhận token JWT.
      operationId: postRequestToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - time
                - signature
                - wallet
              properties:
                time:
                  type: integer
                  description: >-
                    Dấu thời gian Unix hiện tại tính bằng giây khi thông điệp
                    được ký
                  example: 1704067200
                signature:
                  type: string
                  description: Chữ ký ed25519 của thông điệp (mã hóa base58)
                  example: 3veiKZ6IHo7jrz9XdwLd8KvvP2pinCtjJXWe6MGNDUjT...
                wallet:
                  type: string
                  description: Khóa công khai ví Solana
                  example: 4k3Dyjzvzp8eMZWUXbBCjEvwSvsrFjJqkDsyU5F5oV4
      responses:
        '200':
          description: Token được cấp thành công
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      token:
                        type: string
        '400':
          description: Các tham số yêu cầu không hợp lệ
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  success:
                    type: boolean
                    example: false
                  data:
                    type: object
                    properties:
                      msg:
                        type: string
                        example: Invalid signature

````