Creating Temporary File Sharing Links
Learn how to generate signed, expiring download URLs for secure file sharing with a time-limited access window.
Temporary File Sharing Links
The /file/download endpoint returns a signed, temporary URL that expires after a set period.
Request
curl "https://rediafile.com/cloud/api/v2/file/download?short_url=2Vv" \
-H "Authorization: Bearer $TOKEN"
Response
The response includes a download_url with an embedded token and an expires_at timestamp:
{
"status": "success",
"data": {
"download_url": "https://rediafile.com/2Vv?download_token=abc123",
"expires_at": "2024-08-26T13:00:00Z"
}
}
Best Practices
- Share the signed URL directly โ no token needed on the recipient's side.
- Set short expiry windows for sensitive documents.
- Regenerate links as needed; old ones become invalid automatically.