Skip to content

List bucket objects

GET/v1/asset-buckets/{uid}/objects

Returns every object in the bucket, newest first. Deleted objects are not included. Objects whose upload has not been completed yet are listed with status pending_upload.

This endpoint is not paginated. For private buckets each object includes a freshly signed read_url and its read_url_expires_at. For public buckets read_url is the public URL.

Objects written directly to the bucket with an S3 client (for example with a bucket access key) also appear here once storage reports them.

Requires read access to the workspace (any role).

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

uidstringRequired

The bucket's uid.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The bucket's objects.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataarray of objects
Show item attributes
uidstringRequired

Unique identifier of the object.

bucket_uidstringRequired

UID of the bucket the object belongs to.

keystringRequired

Full object key inside the S3 bucket.

filenamestringRequired

Original file name sent when the upload was created, or the last part of the key for objects written directly over S3.

content_typestringRequired

MIME type of the object.

size_bytesintegerRequired

Size of the object in bytes. Until the upload is completed this is the size_bytes sent when the upload was created; completing it replaces it with the size stored in the bucket.

statusstringRequired

pending_upload until the upload is completed, then ready.

One ofpending_uploadreadyfaileddeleted

public_urlstringRequired

Permanent URL of the object on the public assets host. Only readable without a signature in public buckets.

read_urlstring

URL to read the object. A presigned URL in private buckets, otherwise the public URL.

read_url_expires_atstring (date-time)

When read_url stops working. Only present when it is signed.

read_url_is_signedbooleanRequired

true when read_url is a presigned, expiring URL.

created_atstring (date-time)Required

When the object record was created.

last_failurestring

Why the object failed, if it did. Omitted otherwise.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.
404The bucket does not exist in this workspace.

Errors use the standard error format.