cURL
curl --request PUT \ --url https://files.storagecdn.online/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "file_url": {} }'
{ "success": true, "file_url": "<string>" }
Upload files by providing a URL
curl --location --request PUT 'https://files.storagecdn.online/upload' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data-raw '{ "file_url": "https://example.com/path/to/file.png" }'
{ "file_url": "https://example.com/path/to/file.png" }
curl --location --request PUT 'https://files.storagecdn.online/upload' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data-raw '{ "file_url": "https://file.com/images/sample.png" }'
200 OK
{ "success": true, "file_url": "https://files.storagecdn.online/image/2b847255-e028-4cf7-a2aa-c638f3e15cbc.webp" }