# Event hook

The webhook that hears what became of your product’s email.

## mailset hooks get

Show where your products’ mail events go, and what waits for the hook.

```bash
mailset hooks get [--org <id>]
```

An admin or owner of the org can run it.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/hooks#hooks.get-returns).

Example:

```bash
mailset hooks get
```

In the API: [POST /v1/hooks.get](https://mailset.app/docs/api/hooks#hooks.get)

## mailset hooks set

Send events for your products’ mail to a webhook.

```bash
mailset hooks set --url <url> [--org <id>]
```

### Flags

- `--url` (\<url\>, required): Where Mailset posts the events: https, port 443, on a public host name.

An admin or owner of the org can run it.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/hooks#hooks.set-returns).

Example:

```bash
mailset hooks set --url https://app.example.com/hooks/mailset
```

In the API: [POST /v1/hooks.set](https://mailset.app/docs/api/hooks#hooks.set)

## mailset hooks rotate

A new signing secret for the products’ hook; the old one stops.

```bash
mailset hooks rotate [--org <id>]
```

An admin or owner of the org can run it.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/hooks#hooks.rotate-returns).

Example:

```bash
mailset hooks rotate
```

In the API: [POST /v1/hooks.rotate](https://mailset.app/docs/api/hooks#hooks.rotate)

## mailset hooks remove

Stop sending product mail events; what was waiting is dropped.

```bash
mailset hooks remove [--org <id>]
```

An admin or owner of the org can run it.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/hooks#hooks.remove-returns).

Example:

```bash
mailset hooks remove
```

In the API: [POST /v1/hooks.remove](https://mailset.app/docs/api/hooks#hooks.remove)

## mailset hooks test

Post one signed test event to the products’ hook now.

```bash
mailset hooks test [--org <id>]
```

An admin or owner of the org can run it.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/hooks#hooks.test-returns).

Example:

```bash
mailset hooks test
```

In the API: [POST /v1/hooks.test](https://mailset.app/docs/api/hooks#hooks.test)

---

© 2026 Intenseloop, Inc. Mailset’s site, docs and guides are copyrighted. You may read them and use their code to build with Mailset. Don’t republish them or use them to build a copy of Mailset. Terms: https://mailset.app/terms#content