cURL
curl --request POST \ --url https://api-eu.flexportal.io/v1/files/url \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Tenant-ID: <tenant-id>' \ --data ' { "fileId": "<string>", "action": "view", "expiresInMinutes": 60 } '
{ "success": true, "url": "<string>", "filename": "<string>", "contentType": "<string>", "fileSize": 1, "expiresAt": 1 }
Generates a signed URL for viewing or downloading a file. URLs expire after the specified time.
API key obtained from FlexPortal dashboard
Your tenant identifier
1
view
download
1 <= x <= 1440
Signed URL generated
true
false
x >= 0