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

Each restaurant sees the latest emails sent to its guests and what happened to each one. Your backend can read the same list.

## 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`.

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

An automatic email that Minimo skipped before sending it (rule switched off, booking too close, no consent, bounced
address) is not in this list. `GET /public/v1/scheduled-sends` lists it, with `status: skipped` and the reason.

## 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/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/embedded/events.md#what-happens-at-send-time).

## If something fails

A missing email is often a skipped automatic send: `GET /public/v1/scheduled-sends` lists it with its reason. Every code, with what to do: [Errors and limits](https://docs.minimo.it/embedded/errors.md).

## Next step

[Contacts widget](https://docs.minimo.it/embedded/widget-contacts.md)


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