Files

Get file download URL

Returns a short-lived signed URL for downloading a REST API uploaded file. The URL is time-limited and should not be stored permanently.

get/api/v1/files/{file_id}/download-url

Request

  • Base URL: https://api.studio.kaitoi.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.studio.kaitoi.io/api/v1/files/{file_id}/download-url
  • Auth: HTTP bearer

Path parameters

file_idstring required

Query parameters

expiresInSecondsinteger

Signed URL lifetime in seconds. Defaults to 3600 and is capped at 86400.

externalUserIdstring nullable

Optional developer-user guard. When provided, a download URL is issued only if the file's stored externalUserId matches this value.

Headers

authorizationstring nullable

Response

Signed download URL.

fileIdstring required

Stable file identifier.

downloadUrlstring required

Short-lived signed URL for downloading the file.

expiresAtstring date-time required

Signed URL expiration timestamp.

Example response

{
  "downloadUrl": "https://example.com/data/2f8f8c5d.png?token=...",
  "expiresAt": "2026-05-24T13:00:00+00:00",
  "fileId": "2f8f8c5df80e4f76a5b7d1bbd6fae0ab.png"
}

Changes

No recorded changes to this operation across all 1 revision of this API.