downloadS3File
Changed onGenerate a pre-signed download URL for a file using its S3 reference.
Use this endpoint when you have the S3 bucket and key but not the file entity ID.
Request
- Base URLhttps://file.sls.epilot.io
- URLhttps://file.sls.epilot.io/v1/files:downloadS3
- Auth
- HTTP bearer
- or API key in cookie token
Query parameters
The S3 object key, as returned in s3ref.key of the file entity.
Note: object keys store the filename segment percent-encoded. For example, a file named Straße 1.pdf is stored under the key .../Stra%C3%9Fe%201.pdf, and that is the value s3ref.key contains. Pass it exactly as returned by the API and make sure your HTTP client URL-encodes the query parameter value, so a literal % arrives encoded as %25.
The S3 bucket name
Controls the Content-Disposition header. Set to true to trigger browser download dialog, false to display inline.
Response
Pre-signed download URL
Example response
{
"download_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123"
}Changes
- info
added the non-success response with the status
- info