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

# List user portfolios

> Returns all active portfolios for the authenticated user with holdings value, cumulative return, and strategy linking info.

Operation ID: get__portfolios.



## OpenAPI

````yaml /openapi/itoflow-public.openapi.json get /portfolios
openapi: 3.1.0
info:
  description: >-
    All Itoflow APIs are experimental and may change without notice. Read-only
    operations marked interactive can be tried from the documentation; the
    others are reference-only.
  title: Itoflow Developer API
  version: 1.0.0
servers:
  - description: Itoflow API
    url: https://api.itoflow.ai
security: []
tags:
  - name: Account
  - name: Billing
  - name: Brokers
  - name: Chat
  - name: Connected MCP servers
  - name: GitHub
  - name: Market data
  - name: Monitors
  - name: Notifications
  - name: Portfolios
  - name: Risk runs
  - name: Sharing and data
  - name: Strategies
paths:
  /portfolios:
    get:
      tags:
        - Portfolios
      summary: List user portfolios
      description: >-
        Returns all active portfolios for the authenticated user with holdings
        value, cumulative return, and strategy linking info.


        Operation ID: get__portfolios.
      operationId: get__portfolios
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortfolioListResponse'
          description: Portfolio list
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Server error
      security:
        - bearerAuth: []
components:
  schemas:
    PortfolioListResponse:
      properties:
        portfolios:
          items:
            $ref: '#/components/schemas/PortfolioListItem'
          type: array
      required:
        - portfolios
      type: object
    Error:
      properties:
        available:
          description: Optional available amount or value
          type: string
        billing_action:
          $ref: '#/components/schemas/BillingAction'
        code:
          description: Machine-readable error code
          type: string
        currentVersion:
          description: Current server-side version, when relevant
          type: number
        details:
          description: Optional structured error details
        error:
          description: Error type or code
          type: string
        expectedVersion:
          description: Client-provided expected version, when relevant
          type: number
        message:
          description: Human-readable error message
          type: string
        requested:
          description: Optional requested amount or value
          type: string
        usage:
          description: Optional usage metadata for limit errors
      required:
        - error
      type: object
    PortfolioListItem:
      properties:
        benchmark_index_id:
          description: >-
            Provider index id (for example GSPC.INDX) used as the comparison
            basis for benchmark-relative factor risk
          type:
            - string
            - 'null'
        broker_sync_status:
          type:
            - string
            - 'null'
        broker_type:
          type:
            - string
            - 'null'
        created_at:
          type: string
        cumulative_return:
          type:
            - string
            - 'null'
        cumulative_return_reason:
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
        execution_mode:
          description: paper | live
          type: string
        last_broker_validation_at:
          type:
            - string
            - 'null'
        linked_strategy:
          $ref: '#/components/schemas/LinkedStrategyRef'
        name:
          type: string
        peer_portfolio_id:
          description: >-
            Another portfolio on the platform this portfolio is measured against
            for benchmark-relative factor risk
          format: uuid
          type:
            - string
            - 'null'
        portfolio_id:
          format: uuid
          type: string
        portfolio_type:
          type: string
        price_updated_at:
          type:
            - string
            - 'null'
        total_value:
          description: >-
            Net asset value in USD as a decimal string: cash plus the signed
            value of every holding, so a short subtracts. Null, with
            valuationError, when an open holding has no current price with valid
            currency and exchange-rate evidence, or the value is zero or less.
          type:
            - string
            - 'null'
        updated_at:
          type: string
        valuation_unavailable_reason:
          type:
            - string
            - 'null'
        valuationError:
          properties:
            code:
              enum:
                - PORTFOLIO_VALUE_NOT_POSITIVE
                - PORTFOLIO_VALUE_UNKNOWN
              type: string
            message:
              type: string
          required:
            - code
            - message
          type:
            - object
            - 'null'
        went_live_at:
          type:
            - string
            - 'null'
      required:
        - portfolio_id
        - name
        - description
        - portfolio_type
        - total_value
        - valuation_unavailable_reason
        - valuationError
        - cumulative_return
        - cumulative_return_reason
        - linked_strategy
        - peer_portfolio_id
        - benchmark_index_id
        - created_at
        - updated_at
        - price_updated_at
        - execution_mode
        - broker_type
        - broker_sync_status
        - last_broker_validation_at
        - went_live_at
      type: object
    BillingAction:
      description: Action that resolves a billing-related rejection
      properties:
        href:
          type: string
        kind:
          enum:
            - upgrade
            - payment_method
            - spending_cap
            - billing
          type: string
        label:
          type: string
      required:
        - href
        - label
        - kind
      type: object
    LinkedStrategyRef:
      properties:
        id:
          format: uuid
          type: string
        link_type:
          enum:
            - primary
            - follower
          type: string
        name:
          type: string
      required:
        - id
        - name
        - link_type
      type:
        - object
        - 'null'
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: Itoflow access token issued for the Itoflow API.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.