List library files
Lists the images, videos, 3D models and canvases of the user's awen Library, newest first, 50 at a time: every project shared with them, or one project. Pass a file's id to fetch to read its description, prompt and download link. Pass next_cursor back as cursor for the next page.
Needs a key with awen:read. Costs 2 units of the key's rate limit.
apiKeyAuthorizationBearer <token>An API key from Settings → Connected apps → API keys, sent as Authorization: Bearer awen_sk_…. Keep it on a server: a request from a web page is refused.
application/json- body
project_id?stringOnly this project's files.
^[A-Za-z0-9_-]+$1 <= length <= 128type?stringOnly files of this kind.
"image""video""three_d""canvas"cursor?string1 <= length <= 512The operation's answer.
application/json- response
files*array<>next_cursor*string|nullcurl -X POST 'https://app.awen.ai/api/v1/list_files' \ -H 'Content-Type: application/json' \ -d '{}'{ "files": [ { "id": "string", "entry_id": "string", "kind": "image", "name": "string", "media_id": "string", "revision_id": "string", "project": { "project_id": "string", "name": "string" }, "created_at": "string", "updated_at": "string", "has_lineage": true, "url": "string" } ], "next_cursor": "string"}List conversations POST
Lists the user's own awen conversations in a project, or across their projects without project_id, most recently updated first, archived ones included, 50 at a time. Pass a conversation's id to fetch to read it. active_turn_id names the turn running in a conversation, or still making its files, for get_turn: null means nothing runs there. It can lag get_turn by a few seconds, and get_turn decides. A page leaves out conversations in projects the user can no longer open, so it can hold fewer than 50, or none: keep passing next_cursor back as cursor until it is null. Needs a key with awen:read. Costs 1 unit of the key's rate limit.
List a folder POST
Lists the folders and files directly inside a project folder, in name order, 50 at a time. Omit folder_id for the project root. Each item names its Drive entry (entry_id), its content (media_id) and its saved bytes (revision_id); pass its id to fetch to read it. Pass next_cursor back as cursor for the next page. Needs a key with awen:read. Costs 1 unit of the key's rate limit.