Upload any file, any size, any type. The URL is ready before the toast fades.
POST a file with a bearer token, get JSON back with the direct URL. Curl-friendly.
Only you can upload or manage files. API keys are hashed and revocable.
curl -X POST https://your-app.lovable.app/api/public/v1/files \
-H "Authorization: Bearer dbk_live_..." \
-F "file=@screenshot.png"
# → { "id": "…", "url": "https://your-app.lovable.app/api/public/f/…", "name": "screenshot.png" }