POST
/
v1
/
files
/
presigned-url
Get file upload URL
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
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201 - application/json

Presigned URL generated successfully

The response is of type object.