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

# Get Balances

> Retrieves the user's token balances.



## OpenAPI

````yaml POST /account/balances
openapi: 3.0.1
info:
  title: Vanish Core API
  description: API endpoints for the Vanish Core service.
  license:
    name: MIT
  version: 2.0.0
servers:
  - url: https://core-api-dev.vanish.trade
security:
  - ApiKeyAuth: []
paths:
  /account/balances:
    post:
      description: Retrieves the user's token balances.
      requestBody:
        description: Request payload for querying balances.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountInfoRequest'
        required: true
      responses:
        '200':
          description: A successful response containing the user's token balances.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TokenBalance'
        '401':
          description: >-
            Unauthorized. The request is missing a valid API key or the
            signature is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/responses/UnauthorizedError'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    AccountInfoRequest:
      required:
        - timestamp
        - user_address
        - signature
      type: object
      properties:
        timestamp:
          description: >-
            The current timestamp in milliseconds used for signature
            verification. Can be provided as a string or a number.
          oneOf:
            - type: string
              pattern: ^[0-9]+$
            - type: integer
              format: int64
        user_address:
          description: The Solana wallet address of the user.
          type: string
        signature:
          description: >-
            Signature of the 'By signing, I hereby agree to Vanish's Terms of
            Service and agree to be bound by them (docs.vanish.trade/legal/TOS)


            Details: read:{timestamp}' string signed using the user's wallet.
          type: string
    TokenBalance:
      required:
        - token_address
        - balance
        - program_id
      type: object
      properties:
        token_address:
          description: The token address
          type: string
        balance:
          description: Token balance in the smallest unit (e.g., lamports for SOL).
          type: string
          format: int64
        program_id:
          description: Owner Program
          type: string
    Error:
      type: string
  responses:
    UnauthorizedError:
      description: API key is missing or invalid
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````