---
title: "Get secure URL for a document"
method: GET
path: "/api/v{version}/documents/{id}/url"
tags: ["documentation"]
---

# Get secure URL for a document

`GET /api/v{version}/documents/{id}/url`

## Request

- Base URL: `https://api.zrexpress.app`
- URL: `https://api.zrexpress.app/api/v{version}/documents/{id}/url`
- Auth: HTTP bearer and API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/zrexpress/apis/zrexpress-api/docs/api/v:version/documents/:id/url/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a time-limited SAS URL (1 hour) protected by the client's IP address for accessing the document.

## Path parameters

- `version` string, required
- `id` string, uuid, required

## Headers

- `X-Tenant` string, required

## Response `200`

OK

- GetDocumentUrlResponse
  - `id` string, uuid
  - `title` string, nullable
  - `sasUrl` string, uri, nullable
  - `fileName` string, nullable
  - `fileType` string, nullable
  - `mimeType` string, nullable

## Other responses

- `404`: Not Found

## Changes

- **2026-11-03** `652262902df9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zrexpress/apis/zrexpress-api/changes/api/v:version/documents/:id/url/get.md)

---

[API](https://skmtc.dev/zrexpress/apis/zrexpress-api.md) - [All operations](https://skmtc.dev/zrexpress/apis/zrexpress-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zrexpress/apis/zrexpress-api/revisions/652262902df9?raw)
