Working with the Public API
Written by
Updated at February 4, 2026
DataLens provides a public API (https://api.datalens.tech
DataLens Public API is a collection of methods similar to that used in the DataLens web interface. This API is described by the OpenAPI specification and authenticated via the Yandex Cloud IAM tokens.
To use the API, you need an IAM token and an organization ID.
For example, substitute your <IAM_TOKEN>, <ORG_ID>, and <ENTRY_ID> values into the following request to get a list of all objects associated with the entity:
curl -X 'POST' \
'https://api.datalens.tech/rpc/getEntriesRelations' \
-H 'accept: application/json' \
-H 'x-dl-api-version: 0' \
-H 'x-yacloud-subjecttoken: <IAM_TOKEN>' \
-H 'x-dl-org-id: <ORG_ID>' \
-H 'Content-Type: application/json' \
-d '{
"entryIds": [
"<ENTRY_ID>"
]
}'