---
# @generated by sylphx-gen 0.1.0 from contracts@e145cc7cf1bc9605f2b27439e5e17ed76a1a2fd7e7021906a013f7565e4a0cd5. Do not edit.
title: "List in Objects"
description: "`data.objects.list` (GET /v1/objects/{bucket_id}): Lists a bucket's objects in key order."
type: reference
product: storage
summary: "Lists a bucket's objects in key order."
updated: 2026-09-28
nav: false
---

Lists a bucket's objects in key order.

- **Path** `GET https://api.data.sylphx.com/v1/objects/bucket-id`
- **Scope** `data:read`
- **Effect** `read` — nothing is written.
- **Collection** [objects](/docs/api/objects)
- **Query** `prefix`, `page_size`, `page_token`
- **Host** `https://api.data.sylphx.com`

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `bucket_id` | `string` | The bucket's id. Required. |
| `prefix` | `string` | Only keys with this prefix. |
| `page_size` | `uint32` | At most this many objects; the service caps it. |
| `page_token` | `string` | The `next_page_token` of the previous page. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `objects` | `ObjectRecord[]` | The page of objects. |
| `next_page_token` | `string` | Empty on the last page. |

### ObjectRecord

| Field | Type | What it is |
| --- | --- | --- |
| `bucket_id` | `string` | The bucket's id in the environment, for example `uploads`. |
| `key` | `string` | The object key; `/` separates path segments. |
| `sha256` | `string` | `sha256:<hex>` of the bytes. |
| `size` | `uint64` | Size in bytes. |
| `content_type` | `string` | The media type given at put. |
| `etag` | `string` | The entity tag of this version. |
| `version` | `uint64` | The version, increasing per key. |
| `updated_at_unix_ms` | `int64` | When this version was written, in Unix milliseconds. |
| `delete_marker` | `bool` | Whether this version is a delete marker (exact-version reads only). |
| `visibility` | `string` | `public` or `private` (the default); current version only. |

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`RESOURCE_NOT_FOUND`](/docs/api/errors/RESOURCE_NOT_FOUND) — The named Resource does not exist or is not visible.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl "https://api.data.sylphx.com/v1/objects/bucket-id" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"
```

**TypeScript**

```ts
const response = await sylphx.data.objects.list({ bucketId: 'bucket-id' })
```

**Rust**

```rust
let mut req = sylphx::data::ListObjectsRequest::default();
req.bucket_id = "bucket-id".to_string();
let response = sx.data().objects().list(req).await?;
```

**MCP**

```json
{ "method_id": "data.objects.list", "args": {"bucket_id":"bucket-id"} }
```
