[Yandex Cloud documentation](../../index.md) > [Yandex DataLens](../index.md) > DataLens Public API > How to use the Public API

# Working with the Public API


DataLens provides a public API, [https://api.datalens.tech](https://api.datalens.tech), to automate operations with dashboards, charts, datasets, and connections.

The DataLens Public API offers methods similar to those used in the DataLens web interface. This API is described using the OpenAPI specification and authenticated via the Yandex Cloud IAM tokens.

When using the API, please be aware of the [limits](../concepts/limits.md#datalens-api-limits) in place.

To use the API, you need an [IAM token](../../iam/operations/iam-token/create.md) and an [organization ID](../settings/index.md#service-settings).

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:

```bash
curl -X 'POST' \
  'https://api.datalens.tech/rpc/getEntriesRelations' \
  -H 'accept: application/json' \
  -H 'x-dl-api-version: 1' \
  -H 'Authorization: Bearer <IAM_TOKEN>' \
  -H 'x-dl-org-id: <ORG_ID>' \
  -H 'Content-Type: application/json' \
  -d '{
  "entryIds": [
    "<ENTRY_ID>"
  ]
}'
```