Skip to content

Mint a short-lived signed URL for the file's content

GET
/api/tenant/{tenantId}/Files/{id}/download-url
curl --request GET \
--url 'https://api.nimles.com/media/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Files/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/download-url?download=false' \
--header 'Authorization: Bearer <token>'

Mints a short-lived signed URL for the file’s content: the content host serves it without a token until it expires (Media:Content:Signing:Lifetime, five minutes unless configured), for a caller who may read the file. An image transform may be asked for with the content host’s own parameters (width, height, fit, gravity, focal, format, quality, strip, orient); it is normalised the way the content host does and covered by the signature, so the URL cannot be changed into another picture. The plain id URLs of Nimles.Media.Contract.Models.File.FileModel keep working; this is additive.

id
required
string format: uuid

The file.

tenantId
required
string format: uuid

Your tenant id.

download
boolean

Whether the content host answers with an attachment named after the file.

Width
string
Height
string
Fit
string
Gravity
string
Focal
string
Format
string
Quality
string
Strip
string
Orient
string

OK

Media typeapplication/json
object
fields
object
key
additional properties
string
data
object
url
required
string
nullable
expiresAt
required
string format: date-time

Example generated

{
"data": {
"url": "example",
"expiresAt": "2026-04-15T12:00:00Z"
}
}

Unauthorized: no bearer token, or one that is expired or not for this API.

Forbidden: the caller holds no role that allows this action at this scope. The body is empty, or a problem whose detail names the action.

Media typeapplication/json

An RFC 9457 problem.

object
detail
string
nullable
instance
string
nullable
status
integer format: int32
nullable
title
string
nullable
type
string
nullable
key
additional properties

Example generated

{
"detail": "example",
"instance": "example",
"status": 1,
"title": "example",
"type": "example"
}

Not found: no such item in the tenant.

Media typeapplication/problem+json

An RFC 9457 problem.

object
detail
string
nullable
instance
string
nullable
status
integer format: int32
nullable
title
string
nullable
type
string
nullable
key
additional properties

Example generated

{
"detail": "example",
"instance": "example",
"status": 1,
"title": "example",
"type": "example"
}