List assets

The files your organization has uploaded, newest first, with their names, sizes and types. Profile pictures and support attachments are kept apart and do not appear here. This lists the files, it does not fetch them. To open one, ask for a download link with `GET /assets/{assetId}/download`. Requires the `storage.read` permission.

GET
/assets
AuthorizationBearer <token>

The access token returned after a successful sign-in, sent as Authorization: Bearer <access_token>.

It identifies the person and the organization they are working in, and it lasts about fifteen minutes. When it runs out, use their refresh token at POST /auth/refresh-token instead of asking them to sign in again.

In: header

Query Parameters

id?string

Return only the resource with this identifier. Equivalent to fetching it by path, but usable together with the other list filters.

name?string

Return only resources whose name matches this value exactly.

Lengthlength <= 255
autocomplete?string

Search the endpoint's supported text and identifier fields. Matching may be an exact identifier lookup or a case-insensitive prefix search, depending on the resource. Alphanumeric characters only.

limit?integer

How many items to return in one page. The default and the maximum are both 25; a larger value is rejected with 400.

Default25
Formatint64
Range1 <= value <= 25
next?string

Cursor for the next page, taken verbatim from the next field of the previous response. Keep every other query parameter the same between pages: sortBy and order are part of what the cursor means. An absent or empty next in a response means there are no more pages.

The value is opaque. Do not parse it or build one yourself.

order?string

Sort direction. Defaults to desc, newest first.

Default"desc"
Value in"asc" | "desc"
sortBy?string

Field used to sort the result. Supported fields depend on the endpoint; use when_created for chronological ordering where it is available. The default is the resource identifier, and identifiers break ties so cursor paging stays stable.

folder?string

An asset folder — assets, avatars or support.

type?string

Return only files of this kind, for example image/png. The type is the one worked out from the file itself when it was uploaded.

when_created[$gt]?string

Uploaded strictly after this instant.

Formatdate-time
when_created[$lt]?string

Uploaded strictly before this instant.

Formatdate-time
when_created[$gte]?string

Uploaded at or after this instant.

Formatdate-time
when_created[$lte]?string

Uploaded at or before this instant.

Formatdate-time

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api.dual.network/assets"
{
  "assets": [
    {
      "id": "665f1c2d4b1a2c3d4e5f6a10",
      "name": "poster.png",
      "tag": "default",
      "provider": "gcs",
      "folder": "assets",
      "wallet_id": "665f1c2d4b1a2c3d4e5f6a01",
      "url": "https://storage.googleapis.com/example-bucket/665f.../assets/665f1c2d4b1a2c3d4e5f6a10",
      "path": "665f1c2d4b1a2c3d4e5f6aa0/assets/665f1c2d4b1a2c3d4e5f6a10",
      "size": 184320,
      "type": "image/png",
      "hash": "9a0f2c1b7d4e5f60718293a4b5c6d7e8",
      "is_public": false,
      "when_created": "2026-02-14T08:03:00Z"
    }
  ]
}
{
  "code": 3,
  "message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}

{
  "code": 16,
  "message": "no auth provided"
}

{
  "code": 13,
  "message": "internal error"
}