List Assets
GET
/api/v1/assetsAuthorization
AuthorizationBearer token · headerrequiredor
AuthorizationOAuth2 access token · headerrequiredQuery parameters
kindAssetKind | anyauthorstring | anyClerk user id of whoever generated it
graph_idstring | anyrun_idstring | anytagstring[] | anyRepeatable; several tags narrow the feed
searchstring | anyMatches the prompt, case-insensitively
has_promptboolean | anyTrue for the files a model was asked for, false for the ones an edit produced — a cut or a join writes no prompt. Omitted, the feed holds both.
limitintegermin 1 · max 100 · default: 24
offsetintegermin 0 · default: 0
Responses
200Successful Response
successbooleandefault: true
dataAssetsList | anyShow propertiesHide properties
Any of:
AssetsList
assetsGeneratedAsset[]requiredShow propertiesHide properties
Array of
GeneratedAssetidstringrequiredurlstringrequiredsha256stringrequiredkindAssetKindrequiredWhat a generated file is.
The values match the engine's media `PortType`s deliberately: the harvest that finds these
files reads the kind off a node's declared output port, and hands the value over as a plain
string so neither package has to import the other.
Allowed:
imagevideoaudionode_typestringrequirednode_idstringrequiredmodelstring | anyShow propertiesHide properties
Any of:
string
stringany
anypromptstring | anyShow propertiesHide properties
Any of:
string
stringany
anyrun_idstringrequiredrun_generationinteger | anyShow propertiesHide properties
Any of:
integer
integerany
anygraph_idstring | anyShow propertiesHide properties
Any of:
string
stringany
anyowner_idstringrequiredtagsstring[]created_atstring<date-time>metaPaginationMetarequiredShow propertiesHide properties
totalintegerrequiredlimitintegerrequiredoffsetintegerrequiredany
anymessagestring | anyShow propertiesHide properties
Any of:
string
stringany
anyerrorsstring[] | anyShow propertiesHide properties
Any of:
string[]
Array of
stringstringany
any422Validation Error
detailValidationError[]Show propertiesHide properties
Array of
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequiredtypestringrequiredinputanyctxobjectRequest
curl -X GET "/api/v1/assets" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("/api/v1/assets", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"/api/v1/assets",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"success": true,
"data": {
"assets": [
{
"id": "string",
"url": "string",
"sha256": "string",
"kind": "image",
"node_type": "string",
"node_id": "string",
"model": "string",
"prompt": "string",
"run_id": "string",
"run_generation": 0,
"graph_id": "string",
"owner_id": "string",
"tags": [
"string"
],
"created_at": "2019-08-24T14:15:22Z"
}
],
"meta": {
"total": 0,
"limit": 0,
"offset": 0
}
},
"message": "string",
"errors": [
"string"
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}