List assets
GET
/assets
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
// Paginated lists are async iterables; further pages are fetched as needed.for await (const asset of await client.assets.list()) { console.log(asset);}curl -X GET 'https://app.flora.ai/api/v1/assets' \ -H 'Authorization: Bearer $FLORA_API_KEY'Returns assets visible to the authenticated public API key. Filter by workspace, project canvas, search query, cursor, and limit without exposing raw file bytes or internal graph data.
Error responses use the standard error body.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” limit
Maximum number of results to return
integer
Maximum number of results to return
cursor
Opaque cursor for fetching the next page
string
Opaque cursor for fetching the next page
query
Search query
string
Search query
workspace_id
Workspace identifier
string
Workspace identifier
project_id
Project identifier
string
Project identifier
Responses
Section titled “ Responses ”Assets returned.
Media type application/json
object
assets
required
Array<object>
object
content_type
required
Asset content type
string
uploaded_via
required
Asset source
string
status
required
string
Example
{ "assets": [ { "asset_id": "asset_abc123", "workspace_id": "ws_abc123", "status": "pending_upload", "node_id": "node_abc123", "project_id": "prj_abc123" } ], "meta": { "next_cursor": "eyJvZmZzZXQiOjIwfQ" }}