Skip to main content
POST
List the objects at a location. Byteport decrypts the location’s stored secret in-memory, connects to the provider, and returns the entries at the requested path — files and folders, with sizes and modified times where the backend reports them. Address the location the same way as the Locations endpoints: by name or id in the request body (a non-unique name returns 409 with the candidates). Scope the listing with:
  • path — a subfolder relative to the location’s root. Omit it to list the root. For bucket/container backends (S3-family, GCS, Azure), an empty path lists your buckets/containers, not their contents — set path to a bucket name to go inside.
  • recurse — set true to descend into subfolders. Defaults to false.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Address the location by name or id (at least one required), plus an optional listing scope.

name
string

The location name (its label). If it matches several locations, also send id.

Example:

"prod-backups"

id
string

The location's UUID. Addresses one location directly, or selects a match of a non-unique name.

Example:

"3f9a2b7c-1d4e-4a8f-9c2b-6e5d0a1f7b83"

path
string

Subfolder to list, relative to the location's root. Omit or leave empty to list the root. For bucket/container backends, set this to a bucket name to list its contents.

Example:

"archives"

recurse
boolean
default:false

List subfolders recursively. Defaults to false (immediate children only).

Example:

false

Response

The objects at the requested path.

entries
object[]
hint
string

A non-fatal troubleshooting note — e.g. that an empty path on a bucket backend listed buckets, not their contents, or that a path returned nothing. Omitted when there's nothing to add.