Parameters

urls
array
Required
Description
Array of private asset URLs to generate temporary signed GET links for.
items
dictionary
urls[]
dictionary
url
string
Required
Description
The private S3 storage URL of the asset.
downloadable
boolean
Description
If `true`, sets `Content-Disposition: attachment` to force download in client browsers. Default is `false`.
POST/v1/utils/S3signedGetURL
curl https://api.tradly.app/v1/utils/S3signedGetURL \
  -H "Authorization: Bearer YOUR_PUBLISHABLE_OR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{
  "urls": [
    {
      "url": "https://tradly-paas-private.s3.amazonaws.com/documents/marketplace/1000/id-document-e5f6g7h8.pdf",
      "downloadable": true
    }
  ]
}'
RESPONSE
{
  "status": true,
  "data": {
    "result": [
      "https://tradly-paas-private.s3.amazonaws.com/documents/marketplace/1000/id-document-e5f6g7h8.pdf?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Signature=abcdef123456%3D&Expires=1723068600&response-content-disposition=attachment%3B%20filename%3Did-document-e5f6g7h8.pdf"
    ]
  }
}