🧪 API Sandbox

Test Rediafile Cloud API v2 endpoints live. Responses are simulated — no real credentials required.

Upload File

Direct multipart upload with optional folder targeting.

POST https://rediafile.com/cloud/api/v2/file/upload

Parameters

Auth token.
Account id.
Target folder id (0 = root).
The file to upload.

Response

Select an endpoint and click "Send Request" to see a simulated response.
<?php
$ch = curl_init('https://rediafile.com/cloud/api/v2/file/upload');
$data = [
    'access_token' => 'demo_token_abc123',
    'account_id' => 'acc_demo_001',
    'folder_id' => '0',
    'upload_file' => new CURLFile('report.pdf'),
];
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$resp = curl_exec($ch);
curl_close($ch);
echo $resp;