Skip to main content
POST
Get secure file URL

Overview

Generate a signed URL for uploading or downloading files. Signed URLs provide secure, time-limited access to file storage without exposing credentials.

URL Types

Request Fields

Download Example

Get a URL to download an existing file:
Response:

Upload Example

Get a URL to upload a new file:
Response:

URL Expiration

Signed URLs expire after a short period (typically 15-60 minutes). Use them promptly after generation.

Example: Download File

Example: Upload File

Authorizations

Authorization
string
header
required

API key obtained from FlexPortal dashboard

Headers

Tenant-ID
string
required

Your tenant identifier

Body

application/json
fileId
string
required
Minimum string length: 1
action
enum<string>
default:view
Available options:
view,
download
expiresInMinutes
number
default:60
Required range: 1 <= x <= 1440

Response

Signed URL generated

success
enum<boolean>
required
Available options:
true
url
string<uri>
required
filename
string
required
Minimum string length: 1
contentType
string
required
Minimum string length: 1
fileSize
number
required
Required range: x >= 0
expiresAt
number
required
Required range: x >= 0