---
title: "S3-compatible ListObjectsV2"
method: GET
path: "/bedrock/files/{bucket}"
tags: ["Bedrock Integration"]
---

# S3-compatible ListObjectsV2

`GET /bedrock/files/{bucket}`

Lists objects in a bucket using S3 ListObjectsV2 semantics. Supports
the `prefix` and `max-keys` query parameters used by boto3.

## Path parameters

- `bucket` string, required

## Query parameters

- `prefix` string
- `max-keys` integer

## Headers

- `x-model-provider` string

## Response `200`

ListObjectsV2 result (S3 XML or JSON, depending on provider).

- object

## Other responses

- `500` — Internal error returned as S3 XML.

---

[API](https://skmtc.net/getbifrost/apis/bifrost-api.md) · [All operations](https://skmtc.net/getbifrost/apis/bifrost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbifrost/bifrost-api/versions/f8cab88f64ea/schema)
