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

# Export Portfolio Data

> Downloads comprehensive portfolio information in multiple formats (CSV, XML, JSON) with customizable layouts and folder-specific filtering.

<Note>
  Use the [**<u>Login</u>**<u> endpoint</u>](/api-reference/user/logs-a-user-in) to retrieve the **`SessionKey`**, then include it in the **Authorization** field for authentication.
</Note>


## OpenAPI

````yaml get /v1/Portfolio/Download
openapi: 3.0.0
info:
  version: v2
  title: Credit Risk Monitor API
servers:
  - url: https://api.creditriskmonitor.com
security: []
paths:
  /v1/Portfolio/Download:
    get:
      tags:
        - Portfolio
      summary: Downloads the Portfolio
      operationId: Portfolio_DownloadPortfolio
      parameters:
        - name: Format
          in: query
          description: The format of data to return. CSV, XML, or JSON.
          required: false
          schema:
            type: string
        - name: Layout
          in: query
          description: The Custom Layout to return.
          required: false
          schema:
            type: string
        - name: Folder
          in: query
          description: The Portfolio Folder to return data for.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
            text/json:
              schema:
                type: object
            text/html:
              schema:
                type: object
            application/xml:
              schema:
                type: object
            text/xml:
              schema:
                type: object
      security:
        - Bearer: []
components:
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: >-
        Enter the Session Key with the `Bearer ` prefix, e.g. "Bearer
        abcde12345".

````