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

# Get User Flex Investments

> Retrieve active Flex investments with current balances and interest details via the V4 API.

<Note>
  These endpoints are available only for B2B partner services. Fill the form at [https://whitebit.com/institutional-services/b2b](https://whitebit.com/institutional-services/b2b) to request access.
</Note>


## OpenAPI

````yaml /openapi/private/main_api_v4.yaml POST /api/v4/main-account/smart-flex/investments
openapi: 3.0.3
info:
  title: WhiteBIT Private HTTP API V4
  description: |
    WhiteBIT Private HTTP API V4 for Main balance changes.

    Base URL: https://whitebit.com

    All endpoints return time in Unix-time format.
    All endpoints return either a JSON object or array.
    For receiving responses from API calls please use http method POST.
  version: 4.0.0
  contact:
    name: WhiteBIT Support
    email: support@whitebit.com
    url: https://whitebit.com
servers:
  - url: https://whitebit.com
    description: WhiteBIT Global Server
  - url: https://whitebit.eu
    description: WhiteBIT EU Server
security:
  - ApiKeyAuth: []
    PayloadAuth: []
    SignatureAuth: []
tags:
  - name: Main Account
    description: Main account balance and operations
  - name: Deposit
    description: Cryptocurrency and fiat deposit operations
  - name: Withdraw
    description: Cryptocurrency and fiat withdrawal operations
  - name: Transfer
    description: Balance transfer operations
  - name: Codes
    description: WhiteBIT codes operations
  - name: Crypto Lending - Fixed
    description: Fixed crypto lending plans
  - name: Crypto Lending - Flex
    description: Flexible crypto lending plans
  - name: Fees
    description: Fee information
  - name: Sub-Account
    description: Sub-account management
  - name: Sub-Account API Keys
    description: Sub-account API key management
  - name: Mining Pool
    description: Mining pool operations
  - name: Credit Line
    description: Credit line information
  - name: JWT
    description: JWT token management
paths:
  /api/v4/main-account/smart-flex/investments:
    post:
      tags:
        - Crypto Lending - Flex
      summary: Get User Flex Investments
      description: |
        Retrieve user's investment portfolio with optional filtering.

        <Warning>
        Rate limit: 1000 requests/10 sec.
        </Warning>

        <Note>
        The API does not cache the response.
        </Note>
      operationId: getUserFlexInvestments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - request
                - nonce
              properties:
                limit:
                  type: integer
                  default: 100
                  description: 'Pagination limit. Default: 100.'
                  example: 100
                offset:
                  type: integer
                  default: 0
                  description: 'Pagination offset. Default: 0.'
                  example: 0
                ticker:
                  type: string
                  description: >-
                    Filter by currency [ticker](/glossary#ticker). Example:
                    USDT.
                  example: USDT
                plan:
                  type: string
                  description: Filter by plan ID (UUID).
                  example: 8f2e9d3c-1a4b-4c2d-9e5f-6a7b8c9d0e1f
                investment:
                  type: string
                  description: Filter by investment ID.
                  example: inv_7e2d9c3b-1a4b-4c2d-9e5f-6a7b8c9d0e1f
                investmentStatus:
                  type: integer
                  description: Filter by status (1=ACTIVE, 0=CLOSED).
                  enum:
                    - 0
                    - 1
                  example: 1
                request:
                  type: string
                  description: Request signature
                  example: '{{request}}'
                nonce:
                  type: integer
                  description: Unique request identifier
                  example: 1594297865000
            example:
              limit: 100
              offset: 0
              ticker: USDT
              plan: 8f2e9d3c-1a4b-4c2d-9e5f-6a7b8c9d0e1f
              investment: invest_id_123
              investmentStatus: 1
              request: '{{request}}'
              nonce: 1594297865000
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/FlexInvestment'
                  limit:
                    type: integer
                  offset:
                    type: integer
              example:
                data:
                  - id: inv_7e2d9c3b-1a4b-4c2d-9e5f-6a7b8c9d0e1f
                    planId: 8f2e9d3c-1a4b-4c2d-9e5f-6a7b8c9d0e1f
                    currency: USDT
                    invested: '1500.75'
                    withAutoReinvest: true
                    status: 1
                    createdAt: 1640995200
                    updatedAt: 1641081600
                limit: 100
                offset: 0
        '400':
          description: Request validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                invalidFields:
                  summary: Invalid parameters
                  value:
                    code: 0
                    message: Validation failed
                    errors:
                      ticker:
                        - The selected ticker is invalid.
                      plan:
                        - The selected plan is invalid.
                      investment:
                        - The selected investment is invalid.
                      investmentStatus:
                        - The selected investment status is invalid.
components:
  schemas:
    FlexInvestment:
      type: object
      properties:
        id:
          type: string
          description: Flex investment identifier
          example: '2765'
        planId:
          type: string
          description: Flex plan identifier
          example: '12'
        currency:
          type: string
          description: Investment currency
          example: USDT
        invested:
          type: string
          description: Invested amount
          example: '100'
        withAutoReinvest:
          type: boolean
          description: Auto-reinvestment enabled
          example: true
        status:
          type: integer
          description: Investment status (1=ACTIVE, 0=CLOSED)
          example: 1
        createdAt:
          type: integer
          description: Investment creation timestamp
          example: 1588345560
        updatedAt:
          type: integer
          description: Investment last update timestamp
          example: 1588345560
    Error:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-TXC-APIKEY
      description: The public WhiteBIT API key.
    PayloadAuth:
      type: apiKey
      in: header
      name: X-TXC-PAYLOAD
      description: Base64-encoded JSON request body.
    SignatureAuth:
      type: apiKey
      in: header
      name: X-TXC-SIGNATURE
      description: >-
        HMAC-SHA512 signature of the payload, hex-encoded. Computed as
        hex(HMAC-SHA512(payload, api_secret)).

````