> For the complete documentation index, see [llms.txt](https://docs.mluvii.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mluvii.com/en/for-it-specialists/realtime-statistics/connection-to-influx-database.md).

# Connection to influx database

## How to get access data

In mluvii public api there are two endpoints for obtaining access data to get to the influx database.

1. **`/api/v1/Companies/metricSettings`** is for getting access to all companies for which I have permissions in mluvii
2. **`/api/v1/Companies/{companyId}/metricSettings`** is for getting access to a specific company for which I have permissions in mluvii

{% hint style="info" %}
These endpoints return URL and token which are used to connect to influx database.
{% endhint %}

{% hint style="warning" %}
Minimal permissions to obtain acccess data is Company Administrator.
{% endhint %}

## Next steps?

* [Example codes](/en/for-it-specialists/realtime-statistics/examples.md)
* [List of existing metrics](/en/for-it-specialists/realtime-statistics/existing-metrics.md)
* [Grafana](/en/for-it-specialists/realtime-statistics/grafana.md)
