List files with lineage
Changed onLists uploads and generated files in one list, newest first, each with its lineage (tool, model, prompt, cost) and favorite flag. Compared to GET /files it can filter by folder, creator and favorites. Uploads have lineage: null.
Multi-value filters (kind, tool) accept repeated parameters or a comma-separated value and are OR-combined. A malformed created_by or creator_api_key_id is ignored rather than rejected.
Request
- Base URL: https://api.varg.ai/v2
- URL: https://api.varg.ai/v2/resources/files
- Auth: HTTP bearer
Query parameters
Media kind (image, video, audio) and/or origin (upload, generated). Unknown values are ignored.
Restrict to files produced by these tools. Unknown values are ignored.
Matches the prompt, text or code of the job that produced the file.
Folder id or slug, or unfiled for files in no folder.
When true, only files the caller has favorited.
Only files created by this user id.
Only files created through this API key id.
Earliest creation time (ISO 8601).
Latest creation time (ISO 8601).
Offset returned as nextCursor by the previous page.
Response
Page of files
Example response
{
"data": [
{
"created_by_api_key": {
"key_preview": "varg_a1b2...c3d4"
},
"lineage": {
"tool": "image"
}
}
]
}Changes
- info
endpoint added
- info