Create Temporary Signed URL
Generate short-lived, secure access URLs for private files. These links bypass default private ACL blocks for the duration specified.
HTTP Endpoint
POST /api/v1/files/{file_uid}/signed-url
Content-Type: application/json
Request Parameters (JSON Body)
| Field | Type | Required | Description |
|---|---|---|---|
| purpose | string | No | view (default - opens inline) or download (forces file download attachment headers). |
| expires_in | integer | No | Link validity duration in seconds (default 3600 - 1 hour, max 604800 - 7 days). |
| max_uses | integer | No | Optional. Restrict link access count limit (revoked immediately on hits count reach). |
Success Response
{
"success": true,
"data": {
"url": "https://elept.com/f/file_abc123?token=8a3f...",
"expires_at": "2026-06-11T03:45:00Z"
}
}
Code Examples
Node.js Fetch Request:
const response = await fetch('https://elept.com/api/v1/files/file_abc123/signed-url', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
purpose: "view",
expires_in: 3600
})
});
const result = await response.json();
console.log(result.data.url);