# App keys

The keys your product’s servers hold, and what each one may do.

## mailset keys create

A key for your product’s server: prints MAILSET_KEY once, after it’s approved.

```bash
mailset keys create --send [--read] --mailbox <address> [--name <name>] | --send --domain <name> --from <address>… | --any-address [--name <name>] | --campaigns [--org <id>] [--name <name>]
```

### Flags

- `--send` (flag, optional): A key that sends: as one mailbox with --mailbox, or as the --from addresses on a sending-only domain with --domain.
- `--read` (flag, optional): A key that reads one mailbox. Goes with --send or alone.
- `--mailbox` (\<address\>, optional): The mailbox the key is for, with --send or --read.
- `--domain` (\<name\>, optional): With --send: a domain added with --sending, whose mail stays elsewhere, and not its subdomains. An owner or admin approves it.
- `--from` (\<address\>, optional): With --domain: an address on it the key sends as. Again for each, 25 at most.
- `--any-address` (flag, optional): With --domain, in place of --from: any address on it, your team’s included. Only for a domain where nobody has a mailbox.
- `--campaigns` (flag, optional): A key that holds an org’s campaigns and nothing else. An owner or admin approves it.
- `--org` (\<id\>, optional): With --campaigns: the org, when you are in more than one.
- `--name` (\<name\>, optional): What the approval page and App keys call it. This machine’s name unless given.

It prints a link and a code. Approve it with your passkey, and the key prints once. Nothing is saved on this machine.

Needs no login.

Example:

```bash
mailset keys create --send --mailbox hello@example.com --name "Acme API"
```

## mailset keys list

List your app keys: what each sends as, and when it was last used.

```bash
mailset keys list
```

With `--json` it prints a list of [Key status objects](https://mailset.app/docs/api/grants#key-status).

Example:

```bash
mailset keys list
```

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

## mailset keys revoke

Revoke an app key. Its server can’t send with it any more.

```bash
mailset keys revoke <id>
```

### Flags

- `<id>` (argument, required): The app’s id, from `keys list`.

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

Example:

```bash
mailset keys revoke d_4b8e2a6c9f1d3057b3e8a2c6
```

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

## mailset keys renew

Keep an app key working for 90 more days, with the same key.

```bash
mailset keys renew <id>
```

### Flags

- `<id>` (argument, required): The app’s id, from `keys list`.

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/keys#keys.renew-returns).

Example:

```bash
mailset keys renew d_4b8e2a6c9f1d3057b3e8a2c6
```

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

## mailset keys resume

Let an app key its brake paused send again, once you know why it was.

```bash
mailset keys resume <id>
```

### Flags

- `<id>` (argument, required): The app’s id, from `keys list`.

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/keys#keys.resume-returns).

Example:

```bash
mailset keys resume d_4b8e2a6c9f1d3057b3e8a2c6
```

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

## mailset keys update

Change the From addresses a domain key sends as.

```bash
mailset keys update <id> [--from <a,b,…>] [--any-address true]
```

### Flags

- `<id>` (argument, required): The key’s id, from `keys list`.
- `--from` (\<a,b,…\>, optional): The From addresses it may send as from now on, all on its domain. 1 to 25. Or @<path>, to read the JSON from a file.
- `--any-address` (enum, optional): Any address on its domain instead: only for a domain where nobody has a mailbox. Always `true`.

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 [Key status object](https://mailset.app/docs/api/grants#key-status).

Example:

```bash
mailset keys update d_4b8e2a6c9f1d3057b3e8a2c6 --from receipts@example.com --from noreply@example.com
```

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

---

© 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