Mint a short-lived signed URL for the file's content
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://api.nimles.com/media/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Files/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/download-url?download=false"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://api.nimles.com/media/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Files/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/download-url?download=false';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The file.
Your tenant id.
Query Parameters
Section titled “Query Parameters”Whether the content host answers with an attachment named after the file.
Responses
Section titled “Responses”OK
object
object
object
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.
An RFC 9457 problem.
object
Example generated
{ "detail": "example", "instance": "example", "status": 1, "title": "example", "type": "example"}Not found: no such item in the tenant.
An RFC 9457 problem.
object
Example generated
{ "detail": "example", "instance": "example", "status": 1, "title": "example", "type": "example"}