A download link for a file, with the method and headers to fetch it with and when it stops working.

A download link for one file, from space.fs.url(). Anyone holding it can download the file until expiresAt, 15 minutes after it was made.

{
  "method": "GET",
  "url": "https://files.digitospace.com/s/…/0001.pdf",
  "headers": {},
  "expiresAt": "2026-09-26T10:15:00Z"
}

Fields

methodstringRequired

The HTTP method to fetch url with, such as GET.

urlstringRequired

The address of the file’s contents. Treat it as a secret until it expires.

headersRecord<string, string>Required

Headers to send with the request, often none. Send every one of them, or the download may be refused.

expiresAtstringRequired

When the link stops working, as an ISO 8601 date and time. Get a new link after that.

Returned by

Last updated