Skip to content

Get a document view URL

GET
/api/Documents/{id}/view-url
curl --request GET \
--url https://app.docstosheets.com/api/Documents/example/view-url \
--header 'Authorization: Bearer <token>'

Returns a short-lived SAS URL for viewing the original file.

id
required
string

The document ID.

mailboxId
string

The mailbox ID (partition key).

A SAS URL to view the document.

Media type application/json

Response for document view URL request.

object
url
required

The SAS URL to view the document.

string
fileName
required

The original file name.

string
contentType
required

The content type of the document.

string
expiresAt
required

When the URL expires.

string format: date-time
Example generated
{
"url": "example",
"fileName": "example",
"contentType": "example",
"expiresAt": "2026-04-15T12:00:00Z"
}
Media type application/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
nullable
Example generated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}
Media type application/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
nullable
Example generated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}