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

# Submit Signature

> Submit the signed challenge message to receive your JWT access token. The server will verify that: the signature is valid and recovers to your wallet address, the challenge hasn't expired (1 minute window), and the HMAC matches the original challenge.



## OpenAPI

````yaml openapi.json post /v1/auth/submit-signature
openapi: 3.0.0
info:
  title: Swaps API
  description: The Swaps API documentation
  version: '1.0'
  contact: {}
servers:
  - url: https://swap-api.flux.fun
    description: Production
  - url: http://localhost:3000
    description: Development
security: []
tags: []
paths:
  /v1/auth/submit-signature:
    post:
      tags:
        - Authentication
      summary: Submit Signature
      description: >-
        Submit the signed challenge message to receive your JWT access token.
        The server will verify that: the signature is valid and recovers to your
        wallet address, the challenge hasn't expired (1 minute window), and the
        HMAC matches the original challenge.
      operationId: AuthController_walletLogin
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                signature:
                  type: string
                  description: >-
                    The signature of the challenge message, signed with your
                    wallet's private key
                  example: 0x...
                extraData:
                  type: string
                  description: The extraData string received from the Get Message endpoint
                  example: >-
                    {"walletAddress":"0x...","expiresOn":"2024-12-31T23:59:59Z","hmac":"...","chainId":8453,"isSmartContractWallet":false}
              required:
                - signature
                - extraData
      responses:
        '200':
          description: Authentication successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitSignatureResponseDto'
        '400':
          description: Invalid parameters
        '401':
          description: Invalid signature
      security:
        - api-key: []
components:
  schemas:
    SubmitSignatureResponseDto:
      type: object
      properties:
        success:
          type: boolean
          example: true
        accessToken:
          type: string
          example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
          description: >-
            JWT access token for authenticated requests. Include this in the
            Authorization header (Bearer token). Expires after 2 hours.
      required:
        - success
        - accessToken
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: x-api-key

````