---
updatedAt: 2026-06-12T18:04:06.000Z
agentTools:
  projectIndex: https://developers.modoenergy.com/llms.txt
---

# List Custom Files

Returns the custom files your company has uploaded, newest first.

Use a file's `filename` to reference it in your `simulation_config` when creating a run via `POST /runs/`. Filter with `?file_type=`.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "CustomFile": {
        "properties": {
          "file": {
            "description": "Short-lived presigned URL to download the file.",
            "format": "uri",
            "type": "string"
          },
          "file_type": {
            "description": "The file type.",
            "enum": [
              "degradation_curve",
              "grid_charges",
              "grid_curtailment",
              "mlf_forecast",
              "solar_profile",
              "wind_profile"
            ],
            "type": "string"
          },
          "filename": {
            "description": "The value to reference from your `simulation_config` when creating a run (e.g. `assets.battery.degradation.profile_filename`).",
            "example": "my_curve.csv",
            "type": "string"
          },
          "id": {
            "description": "Unique ID of the uploaded file.",
            "format": "uuid",
            "type": "string"
          },
          "uploaded_by": {
            "description": "Email of the user who uploaded the file.",
            "format": "email",
            "type": "string"
          }
        },
        "type": "object"
      },
      "PaginatedCustomFileResponse": {
        "properties": {
          "count": {
            "description": "Total number of results.",
            "type": "integer"
          },
          "next": {
            "format": "uri",
            "type": [
              "string",
              "null"
            ]
          },
          "previous": {
            "format": "uri",
            "type": [
              "string",
              "null"
            ]
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/CustomFile"
            },
            "type": "array"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "tokenAuth": {
        "description": "JWT token obtained from the Modo Energy platform. Send as the `X-token` header value (no `Bearer` prefix).",
        "in": "header",
        "name": "X-token",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "contact": {
      "email": "team@modoenergy.com"
    },
    "description": "API for creating and retrieving custom battery and solar revenue forecast runs.",
    "title": "Modo Energy Forecasts API",
    "version": "v1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/file-uploads/": {
      "get": {
        "description": "Returns the custom files your company has uploaded, newest first.\n\nUse a file's `filename` to reference it in your `simulation_config` when creating a run via `POST /runs/`. Filter with `?file_type=`.",
        "operationId": "list_custom_files",
        "parameters": [
          {
            "description": "Filter to a single file type.",
            "in": "query",
            "name": "file_type",
            "required": false,
            "schema": {
              "enum": [
                "degradation_curve",
                "grid_charges",
                "grid_curtailment",
                "mlf_forecast",
                "solar_profile",
                "wind_profile"
              ],
              "type": "string"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "type": "integer"
            }
          },
          {
            "description": "Offset for pagination.",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedCustomFileResponse"
                }
              }
            },
            "description": "Paginated list of your company's uploaded files."
          },
          "401": {
            "description": "Missing or invalid X-token."
          }
        },
        "summary": "List Custom Files",
        "tags": [
          "Forecasts"
        ],
        "x-readme": {
          "samples-languages": [
            "python",
            "curl",
            "node"
          ]
        }
      }
    }
  },
  "security": [
    {
      "tokenAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.modoenergy.com/pub/v1/forecasts"
    }
  ]
}
```