curl --request POST \
--url https://staging.api.us.aptlydone.com/document/v1/files/presigned-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filename": "company-logo.jpg",
"type": "logos",
"container": "publicAssetsContainer",
"contentType": "image/jpeg"
}
'{
"statusCode": 200,
"timestamp": "2025-06-24T08:51:01.116Z",
"message": "Success",
"data": {
"uploadUrl": "https://storage.azure.com/container/file.jpg?sig=xxx",
"fileUrl": "https://storage.azure.com/container/file.jpg",
"expiresIn": 300
}
}curl --request POST \
--url https://staging.api.us.aptlydone.com/document/v1/files/presigned-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filename": "company-logo.jpg",
"type": "logos",
"container": "publicAssetsContainer",
"contentType": "image/jpeg"
}
'{
"statusCode": 200,
"timestamp": "2025-06-24T08:51:01.116Z",
"message": "Success",
"data": {
"uploadUrl": "https://storage.azure.com/container/file.jpg?sig=xxx",
"fileUrl": "https://storage.azure.com/container/file.jpg",
"expiresIn": 300
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Original filename
"company-logo.jpg"
Type of file being uploaded
logos, documents, images "logos"
Container of file being uploaded
logos, documents, images "publicAssetsContainer"
File MIME type
"image/jpeg"
Presigned URL generated successfully