GET /api/list-assets endpoint returns a list of all uploaded media assets in the project’s public assets images directory. Studio’s image picker calls this endpoint to populate the asset browser whenever you open an image field — giving you a visual grid of every image already available in your project so you can pick one without uploading again.
The endpoint scans the project’s assets images directory and returns the results as a JSON array.
Request
- Method:
GET - Path:
/api/list-assets - Authentication: None required
- Parameters: None
Response
200 OK — Returns a JSON array of public URL strings, one per available asset. Each string matches theurl values returned by POST /api/upload-asset.
string
The public path to an asset — for example
"/assets/images/readme-first.jpg"..png?fit=max&auto=format&n=AyzhRn9-CO-nDNc4&q=85&s=63c78e2325701880237e6cbce1399c2a)
.png?fit=max&auto=format&n=AyzhRn9-CO-nDNc4&q=85&s=0db283df6e4d31745079d6d03fd029ed)