Skip to main content
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
filename
string
required

Original filename

Example:

"company-logo.jpg"

type
enum<string>
required

Type of file being uploaded

Available options:
logos,
documents,
images
Example:

"logos"

container
enum<string>
required

Container of file being uploaded

Available options:
logos,
documents,
images
Example:

"publicAssetsContainer"

contentType
string
required

File MIME type

Example:

"image/jpeg"

Response

201 - application/json

Presigned URL generated successfully

statusCode
number
required

HTTP Status code

Example:

200

timestamp
string
required

Timestamp of the response

Example:

"2025-06-24T08:51:01.116Z"

message
string
required

Response message

Example:

"Success"

data
object
required

Response data