# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mluvii.com/en/for-it-specialists/realtime-statistics/connection-to-influx-database.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
