Media Library

GET https://leads.qreq.com/api/media/library
curl --request GET \
--url 'https://leads.qreq.com/api/media/library' \
--header 'Authorization: Bearer {api_key}'
[ { "id": 11, "name": "qreq-fav", "file_name": "qreq-fav.png", "url": "https://leads.qreq.com/public/storage/media/11/qreq-fav.png", "thumb_url": "https://leads.qreq.com/public/storage/media/11/conversions/qreq-fav-thumb.jpg", "size": 38794, "mime_type": "image/png", "user_id": 9, "created_at": "2025-11-01T06:14:24.000000Z" } ]
POST https://leads.qreq.com/api/media/library/batch
curl -X POST 'https://leads.qreq.com/api/media/library/batch' \
-H 'Authorization: Bearer {api_key}' \
-F 'files[]=@/path/to/image1.png' \
-F 'files[]=@/path/to/document.pdf'
{ "success": true, "message": "Files uploaded successfully.", "data": [ { "id": 12, "name": "document.pdf", "size": 20456, "mime_type": "application/pdf" } ] }
GET https://leads.qreq.com/api/media/library/{id}/download
curl --request GET \
--url 'https://leads.qreq.com/api/media/library/11/download' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "message": "File downloaded successfully.", "data": { "download_url": "https://leads.qreq.com/public/storage/media/11/qreq-fav.png" } }
DELETE https://leads.qreq.com/api/media/library/{id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/media/library/11' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "message": "Media file deleted successfully." }