# Public API

{% hint style="warning" %}
*This guide assumes that the customer is using the cloud-based mluvii solution. If the customer is using the on-premise variant, you need to replace the hosting URL with the customer's server URL.*
{% endhint %}

It is an interface that allows communication between mluvii and your internal applications. You can forward the data from mluvii to your systems using Public API calls. Due to this, you keep data outside of the mluvii platform, creating customized reporting, integrating third-party systems, and much more. For example, you can automatically connect all sessions to a specific customer in CRM.

### What is it used for?

The Public API allows for several useful actions. For example, you will use it when you want **to transfer user information from the application to another system**. It also serves to **sync user statuses among mluvii and third-party systems**. An essential action is also **the anonymization of client data**. Data can be anonymized for both client data and individual Sessions.

{% hint style="info" %}
*You can also use Public API **to display complete data** on **sessions** or **user applications** (name, surname, e-mail, ID, username). Another possibility is to generate **invitations** with unlimited validity and invalidate them later. Administrators will also appreciate the option to change the look and behavior of existing packages in bulk (chat button visuals, button hiding, and form changes).*
{% endhint %}

Last but not least, due to the call to the so-called webhook method, it is possible to transmit information from mluvii to another system in real-time:

* changing operator status,
* launching a session,
* transfer of a session to another operator,
* ending the session.


---

# 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/public-api.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.
