メインコンテンツへスキップ
GET
/
api
/
assets
List user assets
curl --request GET \
  --url https://cloud.comfy.org/api/assets \
  --header 'X-API-Key: <api-key>'
{
  "assets": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "size": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "asset_hash": "<string>",
      "mime_type": "<string>",
      "tags": [
        "<string>"
      ],
      "user_metadata": {},
      "preview_url": "<string>",
      "preview_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "prompt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "last_access_time": "2023-11-07T05:31:56Z",
      "is_immutable": true
    }
  ],
  "total": 123,
  "has_more": true
}

承認

X-API-Key
string
header
必須

API key authentication. Generate an API key from your account settings at https://platform.comfy.org/profile/api-keys. Pass the key in the X-API-Key header.

クエリパラメータ

include_tags
string[]

Filter assets that have ALL of these tags

exclude_tags
string[]

Exclude assets that have ANY of these tags

name_contains
string

Filter assets where name contains this substring (case-insensitive)

metadata_filter
string

JSON object for filtering by metadata fields

limit
integer
デフォルト:20

Maximum number of assets to return (1-500)

必須範囲: 1 <= x <= 500
offset
integer
デフォルト:0

Number of assets to skip for pagination

必須範囲: x >= 0
sort
enum<string>
デフォルト:created_at

Field to sort by

利用可能なオプション:
name,
created_at,
updated_at,
size,
last_access_time
order
enum<string>
デフォルト:desc

Sort order

利用可能なオプション:
asc,
desc
include_public
boolean
デフォルト:true

Whether to include public/shared assets in results

レスポンス

Success - Assets returned

assets
object[]
必須

List of assets matching the query

total
integer
必須

Total number of assets matching the filters

has_more
boolean
必須

Whether more assets are available beyond this page