# Creating Async APIs using the Mercure Protocol API Platform can automatically push the modified version of the resources exposed by the API to the currently connected clients (webapps, mobile apps...) using [the Mercure protocol](https://mercure.rocks). > *Mercure* is a protocol allowing to push data updates to web browsers and other HTTP clients in a convenient, fast, reliable and battery-efficient way. It is especially useful to publish real-time updates of resources served through web APIs, to reactive web and mobile apps. > > —[https://mercure.rocks](https://mercure.rocks) API Platform detects changes made to your Doctrine entities, and sends the updated resources to the Mercure hub. Then, the Mercure hub dispatches the updates to all connected clients using [Server-sent Events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events). ![Mercure subscriptions](images/mercure-subscriptions.png) ## Installing Mercure Support Mercure support is already installed, configured and enabled in [the API Platform distribution](../distribution/index.md). If you use the distribution, you have nothing more to do, and you can skip to the next section. If you have installed API Platform using another method (such as `composer require api`), you need to install [a Mercure hub](https://mercure.rocks/docs/getting-started) and the Symfony MercureBundle. [Learn how to install and configure MercureBundle manually on the Symfony website](https://symfony.com/doc/current/mercure.html) ## Pushing the API Updates Use the `mercure` attribute to hint API Platform that it must dispatch the updates regarding the given resources to the Mercure hub: ```php true])] class Book { // ... } ``` It's also possible to execute an *expression* (using the [Symfony Expression Language component](https://symfony.com/doc/current/components/expression_language.html)), to generate the options dynamically: ```php true]; // ... } ``` ## Available Options In addition to `private`, the following options are available: * `topics`: the list of topics of this update, if not the resource IRI is used * `data`: the content of this update, if not set the content will be the serialization of the resource using the default format * `id`: the SSE id of this event, if not set the ID will be generated by the Mercure Hub * `type`: the SSE type of this event, if not set this field is omitted * `retry`: the `retry` field of the SSE, if not set this field is omitted * `normalization_context`: the specific normalization context to use for the update.