---
title: "Fetch the content of a directory"
method: GET
path: "/files/directory/{path}"
tags: ["File"]
---

# Fetch the content of a directory

`GET /files/directory/{path}`

## Request

- Base URL: `https://api.recordedfuture.com/fusion/v3`
- URL: `https://api.recordedfuture.com/fusion/v3/files/directory/{path}`
- Auth: one of:
  - API key in header `X-RFToken`
  - OAuth 2
    - Authorization code: `https://id.recordedfuture.com/authorize`
    - Token URL: `https://id.recordedfuture.com/token`

List files and subdirectories in a Fusion file system directory to discover available outputs before downloading.

## Path parameters

- `path` string, required

## Response `200`

Directory listing that shows the content of a directory.

- FileDirectoryResponse
  - `type` 'directory'
  - `name` string
  - `path` string
  - `files` union[]
    - union
      - FileDirectory
        - `type` 'directory'
        - `name` string
        - `path` string
      - File
        - `type` 'file'
        - `name` string
        - `path` string
        - `format` string
        - `hash` string
        - `flow` string: Flow that produced the file
        - `created` string, date-string
        - `size` number: File size in bytes.
        - `owner` string: The owner of the file.

---

[API](https://skmtc.dev/recordedfuture/apis/fusion-api.md) - [All operations](https://skmtc.dev/recordedfuture/apis/fusion-api/llms.txt) - [OpenAPI document](https://skmtc.dev/recordedfuture/apis/fusion-api/revisions/15e440739cf0?raw)
