Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex DataLens
  • DataLens Gallery
    • How to use the Public API
    • Versioning
    • Release notes
      • Overview
        • Overview
        • Create HTML page
        • Get HTML page
        • Update HTML page
        • Delete HTML page
        • Get HTML page preview URL
  • Audit Trails events

In this article:

  • Request
  • Headers
  • Body
  • Responses
  • 200 OK
  • Body
  1. DataLens Public API
  2. DataLens API
  3. HtmlPages
  4. Get HTML page preview URL
Written by
Yandex Cloud
View in Markdown
  • Request
    • Headers
    • Body
  • Responses
  • 200 OK
    • Body

Get HTML page preview URL

Returns a temporary URL for previewing the specified HTML page.

RequestRequest

POST

https://api.datalens.tech/rpc/getHtmlPagePreviewUrl

HeadersHeaders

Name

Description

x-dl-api-version

Type: string

API version header.

Const: 3

Example: 3

BodyBody

application/json
{
  "entryId": "example",
  "branch": "saved",
  "revId": "example",
  "lang": "ru",
  "theme": "light"
}

Name

Description

entryId

Type: string

ID of the HTML page to preview.

Example: example

branch

Type: string

HTML page branch to preview. Defaults to published.

Enum: saved, published

lang

Type: string

Language of the HTML page preview.

Enum: ru, en

revId

Type: string

ID of the HTML page revision to preview.

Example: example

theme

Type: string

Theme of the HTML page preview.

Enum: light, dark, light-hc, dark-hc, system

ResponsesResponses

200 OK200 OK

Response

BodyBody

application/json
{
  "url": "example"
}

Name

Description

url

Type: string

Temporary URL for previewing the HTML page.

Example: example

Was the article helpful?

Previous
Delete HTML page
Next
Overview
© 2026 Direct Cursus Technology L.L.C.