---
title: "Objects in a bucket, paged (?prefix=&delimiter=&after=&limit=)"
method: GET
path: "/preview/storage/{bucket}/objects"
tags: ["storage"]
---

# Objects in a bucket, paged (?prefix=&delimiter=&after=&limit=)

`GET /preview/storage/{bucket}/objects`

## Request

- Base URL: `https://autoresearch.sfcompute.com`
- URL: `https://autoresearch.sfcompute.com/preview/storage/{bucket}/objects`
- Auth: HTTP bearer

What is actually IN one of your org's storage buckets - the listing an agent needs before importing anything. list_connections names your buckets (kind "gmn-storage", shown as storage/<bucket>); this shows their contents. Pass delimiter: "/" to walk the bucket a directory at a time: every key sharing the next segment folds into `prefixes` (e.g. ["train/", "val/"]) instead of listing its members, so a bucket of a million objects browses in a handful of calls - then re-call with that prefix to descend. Omit `delimiter` for a flat list of every key under `prefix`. Returns {bucket, prefix, delimiter, objects: [{key, size_bytes, created_at}], prefixes, truncated, next_after}, keys in byte order (the order every S3 client's sync assumes). `truncated: true` means there is another page: call again with after: <next_after>, unchanged prefix and delimiter. `limit` bounds one call (1-1000, default 1000; keys and folded prefixes count together). This reads the object ledger, never the bytes: no node is touched, nothing is downloaded, no egress is billed. To land bytes on a node, import_data(connection: "storage/<bucket>", source: "<key>" - the key exactly as it reads here, bucket-relative, or the full "s3://<bucket>/<key>"; a "/"-terminated prefix for the subtree, or a non-slash key prefix to take a flat prefix in chunks); a human's own terminal has the same listing as `autor storage ls`.

## Path parameters

- `bucket` string, required: The bucket to list (list_connections shows yours as storage/<bucket>; the bucket name is the part after the slash).

## Query parameters

- `prefix` string, nullable: Only keys starting with this. With `delimiter: "/"` a "/"-terminated prefix is one directory; omit both and you get the whole bucket, flat.
- `delimiter` string, nullable: Fold every key sharing the next segment into `prefixes` instead of listing its members: pass "/" to walk the bucket a directory at a time, the way `ls` does (the S3 delimiter, same semantics). Omitted = flat, every key.
- `after` string, nullable: Resume after this key: pass back the `next_after` a truncated response returned. Any key works, so this also restarts a listing mid-bucket.
- `limit` integer, nullable: Entries per call - keys plus folded prefixes together. 1-1000, default 1000. `truncated: true` means there is another page.
- `workspace` string

## Response `200`

The capability's JSON result.

- Result: The capability's result: the same object the MCP tool returns as structuredContent. Resources carry an `object` type discriminator and an immutable id; money is integer micro-dollars in `*_usd_micros` fields.
  - `object` string: The resource type, when the result is one resource.

## Other responses

- `400`: Malformed request: bad JSON, a parameter that does not parse, or a value outside its range. Code `invalid`.
- `401`: No bearer token, or one this API cannot verify. Code `unauthenticated`.
- `403`: Authenticated, but the token's scopes or the account's role do not reach this operation. The message names the scope word to request. Code `forbidden`.
- `404`: No such route. Code `not_found`; the body names the OpenAPI document.
- `422`: A well-formed request the platform declined: no such node, a cap reached, a state that forbids the move. The message says which, and what to do instead. Code `refused`.
- `429`: Over this door's per-customer budget. Wait `Retry-After` seconds. Code `rate_limited`.
- `500`: Our fault. Retry; if it persists, quote the request-id. Code `internal`.

---

[API](https://skmtc.dev/givemeanode/apis/autoresearch-customer-api.md) · [All operations](https://skmtc.dev/givemeanode/apis/autoresearch-customer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/givemeanode/apis/autoresearch-customer-api/revisions/f88dcb70ac6c?raw)
