Hanzo AI
OpenapiS3

List objects

Lists one folder level of a bucket. Folder-style by default: sub-prefixes come back as directory entries, which is the file-manager view.

GET /v1/s3/buckets/{bucket}/objects

Addresshttps://api.hanzo.ai/v1/s3/buckets/{bucket}/objects
MethodGET
Operationget_s3_buckets_by_bucket_objects
AuthAuthorization: Bearer $HANZO_API_KEY

Lists one folder level of a bucket.

Folder-style by default: sub-prefixes come back as directory entries, which is the file-manager view. ?recursive=true lists every key flat under the prefix instead. Keys are RELATIVE to ?prefix=, and the listing is bounded so a huge bucket cannot exhaust memory — Total is what came back, not what the bucket holds.

Billed per call: the balance is checked BEFORE anything is touched, so an unfunded org is refused with nothing read, and the debit lands only once the listing has succeeded.

Request

3 fields.

FieldInTypeRequiredDescription
bucketpathstringyesBucket is the bucket to list, from the path.
prefixquerystring
recursivequerystring

Response

StatusBodyMeaning
200objectListok

200 body — 9 fields.

FieldInTypeAlwaysDescription
bucketbodystringBucket is the bucket that was listed, friendly name.
objectsbodyobjectItem[]Objects are the entries at this level, keys RELATIVE to Prefix.
objects[].etagbodystringETag is the store's entity tag for the bytes currently at this key, with the quotes the store wraps it in stripped.
objects[].isDirbodybooleantrue for a folder (common prefix)
objects[].keybodystringkey RELATIVE to the requested prefix
objects[].lastModifiedbodyintegerunix seconds (0 for a folder)
objects[].sizebodyintegerbytes (0 for a folder)
prefixbodystringPrefix is the sub-folder the listing was scoped to, cleaned.
totalbodyintegerTotal is how many entries came back. The listing is BOUNDED, so a bucket with more keys than the cap answers the cap and this says so — it is not a count of…

Failure carries the platform error shape — see Errors.

Examples

hanzo s3 buckets objects get <bucket>

S3 API · All Hanzo APIs · Interactive reference

How is this guide?

On this page