# Settings

Your own preferences, on every device.

An SDK signs every request with your key: [Authentication](https://mailset.app/docs/authentication.md). To sign one yourself, see [Calling the API without an SDK](https://mailset.app/docs/authentication/http.md).

## settings.get

Show your settings.

`POST /v1/settings.get`

Any signed-in person, with an API token.

### Parameters

It takes no input: send an empty object.

### Returns

`data` is an object with:

- `density` (enum, optional): How tight lists are: `comfortable` or `compact`. One of `comfortable`, `compact`. Default `comfortable`.
- `inboxType` (enum, optional): How the inbox is cut up: `sections`, `tabs`, unread first (`unread`) or starred first (`starred`). One of `sections`, `tabs`, `unread`, `starred`. Default `sections`.
- `inboxTabs` (array of enums, optional): Which categories are tabs of their own. The rest fold into Updates. `primary` always stays. One of `primary`, `updates`, `newsletters`, `promotions`, `receipts`, `notifications`. Default `["primary","updates","newsletters","promotions"]`. At most 6 items.
- `allInboxesHidden` (array of strings, optional): Mailboxes kept out of All inboxes. A new mailbox is in until you say otherwise. Default `[]`. At most 500 items.
- `readingPane` (enum, optional): Where an open conversation shows beside the list: `none`, `right` or `below`. One of `none`, `right`, `below`. Default `none`.
- `timeFormat` (enum, optional): How times read: 24-hour (18:00) or 12-hour (6:00 PM). One of `24h`, `12h`. Default `24h`.
- `undoSeconds` (number, optional): Seconds mail waits before it leaves, so it can be taken back: 5, 10, 20 or 30. Default `10`.
- `conversations` (boolean, optional): On folds older messages in a conversation. Off opens them all. Default `true`.
- `sendArchive` (boolean, optional): Show a button that sends a reply and archives the conversation. Default `true`.
- `images` (enum, optional): Remote images in mail: `ask` before showing them, or `always` show them. One of `ask`, `always`. Default `ask`.
- `originalColors` (array of strings, optional): Senders whose mail shows in the colours it was sent in, never recoloured for the dark theme: the message’s Original colours switch, on the web and the iPhone. The newest go last. Default `[]`. At most 500 items.
- `leaveAsk` (boolean, optional): Ask before Unsubscribe opens a sender’s own page in a new tab. Default `true`.
- `shortcuts` (boolean, optional): Keyboard shortcuts on or off. Default `true`.
- `notify` (enum, optional): Which new mail notifies you: `all`, `important`, only mail from `people`, or `none`. One of `all`, `important`, `people`, `none`. Default `important`.
- `notifyPerMailbox` (map of enums, optional): Mailboxes that notify differently, by address: `same` as `notify`, `all` or `none`. Default `{}`.
- `preview` (enum, optional): What a notification shows: the sender and subject (`full`), only the `sender`, or `none`. One of `full`, `sender`, `none`. Default `sender`.
- `push` (boolean, optional): Push notifications on or off. Default `true`.
- `quiet` (boolean, optional): Quiet hours: notifications from 22:00 to 07:00 are held, then arrive as one. Default `true`.
- `digest` (enum, optional): A summary of new mail filed in your inbox: `off`, `daily` or `weekly`. One of `off`, `daily`, `weekly`. Default `off`.
- `ai` (boolean, optional): AI on your mail. Off, none of your mail goes to a model. Default `true`.
- `triage` (boolean, optional): Sort mail into tabs and flag what needs a reply. Off, there’s one inbox. Default `true`.
- `summaries` (boolean, optional): A short summary on long conversations. Default `true`.
- `drafts` (boolean, optional): Draft replies written for you. Nothing is sent without you. Default `true`.
- `followUps` (number, optional): Days without an answer before mail you sent comes back: 2, 3, 5 or 7. 0 turns it off. Default `3`.
- `phishing` (boolean, optional): Warn about mail that looks forged. Default `true`.
- `aliasReply` (enum, optional): The address a reply goes from: the one the mail reached (`received`), or your `default` address. One of `received`, `default`. Default `received`.
- `vacation` (boolean, optional): Whether your vacation replies may go out. Default `false`.
- `forwarding` (enum, optional): Forwarding rules: allowed with a `passkey` check, or `never`. One of `passkey`, `never`. Default `passkey`.
- `sharedAi` (boolean, optional): Whether AI runs on shared mailboxes. Default `true`.
- `sessionDays` (number, optional): How long a new sign-in lasts, in days: 30, 7 or 0.5 (12 hours). Default `30`.

### Request

TypeScript:

```typescript
import { Mailset } from 'mailset';

// Reads MAILSET_TOKEN from the environment.
const mailset = new Mailset();

const answer = await mailset.settings.get();
console.log(answer);
```

Python:

```python
from mailset import Mailset

# Reads MAILSET_TOKEN from the environment.
mailset = Mailset()

answer = mailset.settings.get()
print(answer)
```

Go:

```go
package main

import (
	"context"
	"fmt"
	"log"

	mailset "mailset.app/go"
)

func main() {
	// Reads MAILSET_TOKEN from the environment.
	client, err := mailset.NewClient()
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()
	answer, err := client.Settings.Get(ctx)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(answer)
}
```

Ruby:

```ruby
require 'mailset'

# Reads MAILSET_TOKEN from the environment.
mailset = Mailset::Client.new

answer = mailset.settings.get
p answer
```

PHP:

```php
<?php

require 'vendor/autoload.php';

// Reads MAILSET_TOKEN from the environment.
$mailset = new Mailset\Client();

$answer = $mailset->settings->get();
echo json_encode($answer, JSON_PRETTY_PRINT), PHP_EOL;
```

Java:

```java
import app.mailset.Mailset;
import app.mailset.model.Settings;

// Reads MAILSET_TOKEN from the environment.
Mailset mailset = Mailset.fromEnv();

Settings answer = mailset.settings().get();
System.out.println(answer);
```

Rust:

```rust
// Reads MAILSET_TOKEN from the environment.
let mailset = mailset::Client::from_env()?;

let answer = mailset.settings().get().await?;
println!("{answer:?}");
```

curl:

```bash
curl https://mailset.app/v1/settings.get \
  -H "Authorization: Bearer $TOKEN" \
  -H "ms-time: $MS_TIME" \
  -H "ms-proof: $MS_PROOF" \
  -H "Content-Type: application/json" \
  -d '{"input":{}}'
```

curl can’t sign a request. `$TOKEN` is your credential’s token, and `$MS_TIME` and `$MS_PROOF` sign this exact body: [Calling the API without an SDK](https://mailset.app/docs/authentication/http) shows how.

CLI:

```bash
mailset settings get
```

### Response

```json
{
  "ok": true,
  "data": {
    "density": "comfortable",
    "inboxType": "sections",
    "inboxTabs": [
      "primary"
    ],
    "allInboxesHidden": [
      "hello@example.com"
    ],
    "readingPane": "none",
    "timeFormat": "24h",
    "undoSeconds": 10,
    "conversations": true,
    "sendArchive": true,
    "images": "ask",
    "originalColors": [
      "hello@example.com"
    ],
    "leaveAsk": true,
    "shortcuts": true,
    "notify": "all",
    "notifyPerMailbox": {},
    "preview": "full",
    "push": true,
    "quiet": true,
    "digest": "off",
    "ai": true,
    "triage": true,
    "summaries": true,
    "drafts": true,
    "followUps": 3,
    "phishing": true,
    "aliasReply": "received",
    "vacation": false,
    "forwarding": "passkey",
    "sharedAi": true,
    "sessionDays": 30
  }
}
```

In the CLI: [mailset reference](https://mailset.app/docs/cli/settings#settings-get)

## settings.set

Change settings.

`POST /v1/settings.set`

Any signed-in person, with an API token.

### Parameters

- `density` (enum, optional): How tight lists are: `comfortable` or `compact`. One of `comfortable`, `compact`.
- `inboxType` (enum, optional): How the inbox is cut up: `sections`, `tabs`, unread first (`unread`) or starred first (`starred`). One of `sections`, `tabs`, `unread`, `starred`.
- `inboxTabs` (array of enums, optional): Which categories are tabs of their own. The rest fold into Updates. `primary` always stays. One of `primary`, `updates`, `newsletters`, `promotions`, `receipts`, `notifications`. At most 6 items.
- `allInboxesHidden` (array of strings, optional): Mailboxes kept out of All inboxes. A new mailbox is in until you say otherwise. At most 500 items.
- `readingPane` (enum, optional): Where an open conversation shows beside the list: `none`, `right` or `below`. One of `none`, `right`, `below`.
- `timeFormat` (enum, optional): How times read: 24-hour (18:00) or 12-hour (6:00 PM). One of `24h`, `12h`.
- `undoSeconds` (number, optional): Seconds mail waits before it leaves, so it can be taken back: 5, 10, 20 or 30.
- `conversations` (boolean, optional): On folds older messages in a conversation. Off opens them all.
- `sendArchive` (boolean, optional): Show a button that sends a reply and archives the conversation.
- `images` (enum, optional): Remote images in mail: `ask` before showing them, or `always` show them. One of `ask`, `always`.
- `originalColors` (array of strings, optional): Senders whose mail shows in the colours it was sent in, never recoloured for the dark theme: the message’s Original colours switch, on the web and the iPhone. The newest go last. At most 500 items.
- `leaveAsk` (boolean, optional): Ask before Unsubscribe opens a sender’s own page in a new tab.
- `shortcuts` (boolean, optional): Keyboard shortcuts on or off.
- `notify` (enum, optional): Which new mail notifies you: `all`, `important`, only mail from `people`, or `none`. One of `all`, `important`, `people`, `none`.
- `notifyPerMailbox` (map of enums, optional): Mailboxes that notify differently, by address: `same` as `notify`, `all` or `none`.
- `preview` (enum, optional): What a notification shows: the sender and subject (`full`), only the `sender`, or `none`. One of `full`, `sender`, `none`.
- `push` (boolean, optional): Push notifications on or off.
- `quiet` (boolean, optional): Quiet hours: notifications from 22:00 to 07:00 are held, then arrive as one.
- `digest` (enum, optional): A summary of new mail filed in your inbox: `off`, `daily` or `weekly`. One of `off`, `daily`, `weekly`.
- `ai` (boolean, optional): AI on your mail. Off, none of your mail goes to a model.
- `triage` (boolean, optional): Sort mail into tabs and flag what needs a reply. Off, there’s one inbox.
- `summaries` (boolean, optional): A short summary on long conversations.
- `drafts` (boolean, optional): Draft replies written for you. Nothing is sent without you.
- `followUps` (number, optional): Days without an answer before mail you sent comes back: 2, 3, 5 or 7. 0 turns it off.
- `phishing` (boolean, optional): Warn about mail that looks forged.
- `aliasReply` (enum, optional): The address a reply goes from: the one the mail reached (`received`), or your `default` address. One of `received`, `default`.
- `vacation` (boolean, optional): Whether your vacation replies may go out.
- `forwarding` (enum, optional): Forwarding rules: allowed with a `passkey` check, or `never`. One of `passkey`, `never`.
- `sharedAi` (boolean, optional): Whether AI runs on shared mailboxes.
- `sessionDays` (number, optional): How long a new sign-in lasts, in days: 30, 7 or 0.5 (12 hours).

### Returns

`data` is an object with:

- `density` (enum, optional): How tight lists are: `comfortable` or `compact`. One of `comfortable`, `compact`. Default `comfortable`.
- `inboxType` (enum, optional): How the inbox is cut up: `sections`, `tabs`, unread first (`unread`) or starred first (`starred`). One of `sections`, `tabs`, `unread`, `starred`. Default `sections`.
- `inboxTabs` (array of enums, optional): Which categories are tabs of their own. The rest fold into Updates. `primary` always stays. One of `primary`, `updates`, `newsletters`, `promotions`, `receipts`, `notifications`. Default `["primary","updates","newsletters","promotions"]`. At most 6 items.
- `allInboxesHidden` (array of strings, optional): Mailboxes kept out of All inboxes. A new mailbox is in until you say otherwise. Default `[]`. At most 500 items.
- `readingPane` (enum, optional): Where an open conversation shows beside the list: `none`, `right` or `below`. One of `none`, `right`, `below`. Default `none`.
- `timeFormat` (enum, optional): How times read: 24-hour (18:00) or 12-hour (6:00 PM). One of `24h`, `12h`. Default `24h`.
- `undoSeconds` (number, optional): Seconds mail waits before it leaves, so it can be taken back: 5, 10, 20 or 30. Default `10`.
- `conversations` (boolean, optional): On folds older messages in a conversation. Off opens them all. Default `true`.
- `sendArchive` (boolean, optional): Show a button that sends a reply and archives the conversation. Default `true`.
- `images` (enum, optional): Remote images in mail: `ask` before showing them, or `always` show them. One of `ask`, `always`. Default `ask`.
- `originalColors` (array of strings, optional): Senders whose mail shows in the colours it was sent in, never recoloured for the dark theme: the message’s Original colours switch, on the web and the iPhone. The newest go last. Default `[]`. At most 500 items.
- `leaveAsk` (boolean, optional): Ask before Unsubscribe opens a sender’s own page in a new tab. Default `true`.
- `shortcuts` (boolean, optional): Keyboard shortcuts on or off. Default `true`.
- `notify` (enum, optional): Which new mail notifies you: `all`, `important`, only mail from `people`, or `none`. One of `all`, `important`, `people`, `none`. Default `important`.
- `notifyPerMailbox` (map of enums, optional): Mailboxes that notify differently, by address: `same` as `notify`, `all` or `none`. Default `{}`.
- `preview` (enum, optional): What a notification shows: the sender and subject (`full`), only the `sender`, or `none`. One of `full`, `sender`, `none`. Default `sender`.
- `push` (boolean, optional): Push notifications on or off. Default `true`.
- `quiet` (boolean, optional): Quiet hours: notifications from 22:00 to 07:00 are held, then arrive as one. Default `true`.
- `digest` (enum, optional): A summary of new mail filed in your inbox: `off`, `daily` or `weekly`. One of `off`, `daily`, `weekly`. Default `off`.
- `ai` (boolean, optional): AI on your mail. Off, none of your mail goes to a model. Default `true`.
- `triage` (boolean, optional): Sort mail into tabs and flag what needs a reply. Off, there’s one inbox. Default `true`.
- `summaries` (boolean, optional): A short summary on long conversations. Default `true`.
- `drafts` (boolean, optional): Draft replies written for you. Nothing is sent without you. Default `true`.
- `followUps` (number, optional): Days without an answer before mail you sent comes back: 2, 3, 5 or 7. 0 turns it off. Default `3`.
- `phishing` (boolean, optional): Warn about mail that looks forged. Default `true`.
- `aliasReply` (enum, optional): The address a reply goes from: the one the mail reached (`received`), or your `default` address. One of `received`, `default`. Default `received`.
- `vacation` (boolean, optional): Whether your vacation replies may go out. Default `false`.
- `forwarding` (enum, optional): Forwarding rules: allowed with a `passkey` check, or `never`. One of `passkey`, `never`. Default `passkey`.
- `sharedAi` (boolean, optional): Whether AI runs on shared mailboxes. Default `true`.
- `sessionDays` (number, optional): How long a new sign-in lasts, in days: 30, 7 or 0.5 (12 hours). Default `30`.

### Request

TypeScript:

```typescript
import { Mailset } from 'mailset';

// Reads MAILSET_TOKEN from the environment.
const mailset = new Mailset();

const answer = await mailset.settings.set({
	density: "compact",
	undoSeconds: 20,
});
console.log(answer);
```

Python:

```python
from mailset import Mailset

# Reads MAILSET_TOKEN from the environment.
mailset = Mailset()

answer = mailset.settings.set(
    {"density": "compact", "undo_seconds": 20}
)
print(answer)
```

Go:

```go
package main

import (
	"context"
	"fmt"
	"log"

	mailset "mailset.app/go"
)

func main() {
	// Reads MAILSET_TOKEN from the environment.
	client, err := mailset.NewClient()
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()
	params := &mailset.SettingsSetParams{
		Density:     mailset.SettingsDensityCompact,
		UndoSeconds: mailset.Int(20),
	}
	answer, err := client.Settings.Set(ctx, params)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(answer)
}
```

Ruby:

```ruby
require 'mailset'

# Reads MAILSET_TOKEN from the environment.
mailset = Mailset::Client.new

answer = mailset.settings.set(
  density: 'compact',
  undo_seconds: 20
)
p answer
```

PHP:

```php
<?php

require 'vendor/autoload.php';

// Reads MAILSET_TOKEN from the environment.
$mailset = new Mailset\Client();

$answer = $mailset->settings->set([
    'density' => 'compact',
    'undoSeconds' => 20,
]);
echo json_encode($answer, JSON_PRETTY_PRINT), PHP_EOL;
```

Java:

```java
import app.mailset.Mailset;
import app.mailset.model.Settings;
import app.mailset.model.SettingsDensity;
import app.mailset.model.SettingsSetParams;

// Reads MAILSET_TOKEN from the environment.
Mailset mailset = Mailset.fromEnv();

var params = SettingsSetParams.builder()
        .density(SettingsDensity.COMPACT)
        .undoSeconds(20L)
        .build();
Settings answer = mailset.settings().set(params);
System.out.println(answer);
```

Rust:

```rust
use mailset::types::{
    SettingsDensity, SettingsSetParams,
};

// Reads MAILSET_TOKEN from the environment.
let mailset = mailset::Client::from_env()?;

let answer = mailset
    .settings()
    .set(SettingsSetParams {
        density: Some(SettingsDensity::Compact),
        undo_seconds: Some(20),
        ..Default::default()
    })
    .await?;
println!("{answer:?}");
```

curl:

```bash
curl https://mailset.app/v1/settings.set \
  -H "Authorization: Bearer $TOKEN" \
  -H "ms-time: $MS_TIME" \
  -H "ms-proof: $MS_PROOF" \
  -H "Content-Type: application/json" \
  -d '{"input":{"density":"compact","undoSeconds":20}}'
```

curl can’t sign a request. `$TOKEN` is your credential’s token, and `$MS_TIME` and `$MS_PROOF` sign this exact body: [Calling the API without an SDK](https://mailset.app/docs/authentication/http) shows how.

CLI:

```bash
mailset settings set --density compact --undo-seconds 20
```

### Response

```json
{
  "ok": true,
  "data": {
    "density": "comfortable",
    "inboxType": "sections",
    "inboxTabs": [
      "primary"
    ],
    "allInboxesHidden": [
      "hello@example.com"
    ],
    "readingPane": "none",
    "timeFormat": "24h",
    "undoSeconds": 10,
    "conversations": true,
    "sendArchive": true,
    "images": "ask",
    "originalColors": [
      "hello@example.com"
    ],
    "leaveAsk": true,
    "shortcuts": true,
    "notify": "all",
    "notifyPerMailbox": {},
    "preview": "full",
    "push": true,
    "quiet": true,
    "digest": "off",
    "ai": true,
    "triage": true,
    "summaries": true,
    "drafts": true,
    "followUps": 3,
    "phishing": true,
    "aliasReply": "received",
    "vacation": false,
    "forwarding": "passkey",
    "sharedAi": true,
    "sessionDays": 30
  }
}
```

In the CLI: [mailset reference](https://mailset.app/docs/cli/settings#settings-set)

---

© 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