Parameters
files
array
RequiredDescription
Array of file metadata objects to generate upload URLs for.
items
dictionary
files[]
dictionary
name
string
RequiredDescription
Original file name with extension.
type
string
RequiredDescription
MIME type of the file (e.g. `image/png`, `video/mp4`, `application/pdf`).
private
boolean
Description
If `true`, uploads to the private S3 bucket requiring signed GET URLs to access. Default is `false`.
POST/v1/utils/S3signedUploadURL
bash
curl https://api.tradly.app/v1/utils/S3signedUploadURL \
-H "Authorization: Bearer YOUR_PUBLISHABLE_OR_SECRET_KEY" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"files": [
{
"name": "product-image.png",
"type": "image/png",
"private": false
},
{
"name": "id-document.pdf",
"type": "application/pdf",
"private": true
}
]
}'RESPONSE
json
{
"status": true,
"data": {
"result": [
{
"fileUri": "https://media.tradly.app/images/marketplace/1000/product-image-a1b2c3d4.png",
"signedUrl": "https://tradly-paas.s3.amazonaws.com/images/marketplace/1000/product-image-a1b2c3d4.png?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Signature=vjbyPxybdZaNmGa%2ByT272YEAiv4%3D&Expires=1723068600"
},
{
"fileUri": "https://tradly-paas-private.s3.amazonaws.com/documents/marketplace/1000/id-document-e5f6g7h8.pdf",
"signedUrl": "https://tradly-paas-private.s3.amazonaws.com/documents/marketplace/1000/id-document-e5f6g7h8.pdf?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Signature=x1y2z3a4b5c6d7e8f9%3D&Expires=1723068600"
}
]
}
}