跳转到主要内容
GET
List user assets

授权

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