> ## Documentation Index
> Fetch the complete documentation index at: https://docs.minimo.it/llms.txt
> Use this file to discover all available pages before exploring further.

# Send history widget

> Each restaurant sees the latest emails sent to its guests and what happened to each one

## What the restaurant sees

**Send history**: the latest 100 emails sent to the restaurant's guests, newest first, one row each:

| Column | What it shows |
| - | - |
| When | Date and time of the send |
| To | The guest's email address |
| Subject | The subject the guest received |
| Type | **Automatic** (a confirmation, a reminder, any automatic message) or **Campaign** |
| Status | Sent, Delivered, Not sent, Bounced, Marked as spam, Queued… plus an **Opened** mark when the guest opened it (an estimate, see [statistics](https://docs.minimo.it/guides/embedded-widget-statistics.md)) |

Only this restaurant's emails appear: the sends you made with its `tenant`, the emails of its automatic rules and its campaigns. It is read-only.

## Mount it

Permission `history` (in the default):

```html theme={null}
<div id="minimo-history"></div>
<script src="https://api.minimo.it/public/v1/embed/widgets/widgets.js"></script>
<script>
  Minimo.mountWidget({ url: session.urls.history, container: '#minimo-history', minHeight: 360 });
</script>
```

Events: `ready` with `count`, `error`, `resize`.

## The same data from your backend

Every message carries the `tenant` you sent it with. List one restaurant's messages (permission `transactional`):

```bash theme={null}
curl "https://api.minimo.it/public/v1/messages/list?tenant=restaurant_4812" \
  -H "Authorization: Bearer YOUR_MINIMO_KEY"
```

For totals and rates per restaurant use `GET /public/v1/tenants/{tenant}/stats`, see the [Statistics widget](https://docs.minimo.it/guides/embedded-widget-statistics.md#the-same-numbers-for-your-own-charts). For the sends planned by the automatic rules use `GET /public/v1/scheduled-sends`, see [Automatic messages](https://docs.minimo.it/guides/embedded-automations.md#what-happens-at-send-time).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.