# Inbound routes

Email to a subdomain, delivered to your webhook.

## mailset routes list

List the inbound routes: domains whose mail goes to a webhook.

```bash
mailset routes list [--org <id>]
```

An admin or owner of the org can run it.

With `--json` it prints a list of [Inbound route objects](https://mailset.app/docs/api/routes#route).

Example:

```bash
mailset routes list
```

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

## mailset routes add

Send every message to a subdomain to a webhook.

```bash
mailset routes add <domain> --url <url> [--org <id>]
```

### Flags

- `<domain>` (argument, required): The route’s domain: every address at it goes to the hook.
- `--url` (\<url\>, required): Where each message is POSTed: an https URL on a public host name.

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

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

Example:

```bash
mailset routes add in.example.com --url https://app.example.com/hooks/inbound
```

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

## mailset routes check

Check that a route’s MX points at Mailset.

```bash
mailset routes check <domain> [--org <id>]
```

### Flags

- `<domain>` (argument, required): The route’s domain: every address at it goes to the hook.

An admin or owner of the org can run it.

With `--json` it prints the [Inbound route object](https://mailset.app/docs/api/routes#route).

Example:

```bash
mailset routes check in.example.com
```

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

## mailset routes apply

Write a route’s MX to its DNS host.

```bash
mailset routes apply <domain> [--org <id>]
```

### Flags

- `<domain>` (argument, required): The route’s domain: every address at it goes to the hook.

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

With `--json` it prints the [Inbound route object](https://mailset.app/docs/api/routes#route).

Example:

```bash
mailset routes apply in.example.com
```

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

## mailset routes rotate

Make a route a new signing secret; the old one stops at once.

```bash
mailset routes rotate <domain> [--org <id>]
```

### Flags

- `<domain>` (argument, required): The route’s domain: every address at it goes to the hook.

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

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

Example:

```bash
mailset routes rotate in.example.com
```

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

## mailset routes remove

Remove a route; mail still waiting for its hook is dropped.

```bash
mailset routes remove <domain> [--org <id>]
```

### Flags

- `<domain>` (argument, required): The route’s domain: every address at it goes to the hook.

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

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

Example:

```bash
mailset routes remove in.example.com
```

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

---

© 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