---
search:
  tags:
    - Data
    - GET
seo:
  description: >-
    Returns one folder of one bucket of one luna: the folders… Reference for the
    GET /_luna/tenants/{tenant}/files/{type}/{bucket} endpoint in the Luna API.
sidebar:
  label: List the files in a folder
  badge: GET
title: List the files in a folder
type: openapi-operation
---
Returns one folder of one bucket of one luna: the folders directly under `prefix` and the files directly in it. Each luna has its own buckets, so you name the luna with `key`.

`GET /_luna/tenants/{tenant}/files/{type}/{bucket}`

**Responses**

- `200` — The folder's contents.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "folders": [
    "string"
  ],
  "objects": [
    {
      "bucket": "string",
      "path": "string",
      "hash": "string",
      "size": 0,
      "contentType": "string",
      "meta": null,
      "created": 0,
      "updated": 0
    }
  ],
  "cursor": "string"
}
```
