Settings
Your own preferences, on every device.
An SDK signs every request with your key: Authentication. To sign one yourself, see Calling the API without an SDK.
On this page
settings.get
Show your settings.
POST/v1/settings.get
Parameters
It takes no input: send an empty object.
Returns
data is an object with:
How tight lists are:
comfortableorcompact.One of
comfortablecompactDefault
comfortable.How the inbox is cut up:
sections,tabs, unread first (unread) or starred first (starred).One of
sectionstabsunreadstarredDefault
sections.Which categories are tabs of their own. The rest fold into Updates.
primaryalways stays.One of
primaryupdatesnewsletterspromotionsreceiptsnotificationsDefault
["primary","updates","newsletters","promotions"]. At most 6 items.Mailboxes kept out of All inboxes. A new mailbox is in until you say otherwise.
Default
[]. At most 500 items.Where an open conversation shows beside the list:
none,rightorbelow.One of
nonerightbelowDefault
none.How times read: 24-hour (18:00) or 12-hour (6:00 PM).
One of
24h12hDefault
24h.Seconds mail waits before it leaves, so it can be taken back: 5, 10, 20 or 30.
Default
10.On folds older messages in a conversation. Off opens them all.
Default
true.Show a button that sends a reply and archives the conversation.
Default
true.Remote images in mail:
askbefore showing them, oralwaysshow them.One of
askalwaysDefault
ask.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.Ask before Unsubscribe opens a sender’s own page in a new tab.
Default
true.Keyboard shortcuts on or off.
Default
true.Which new mail notifies you:
all,important, only mail frompeople, ornone.One of
allimportantpeoplenoneDefault
important.Mailboxes that notify differently, by address:
sameasnotify,allornone.Default
{}.What a notification shows: the sender and subject (
full), only thesender, ornone.One of
fullsendernoneDefault
sender.Push notifications on or off.
Default
true.Quiet hours: notifications from 22:00 to 07:00 are held, then arrive as one.
Default
true.A summary of new mail filed in your inbox:
off,dailyorweekly.One of
offdailyweeklyDefault
off.AI on your mail. Off, none of your mail goes to a model.
Default
true.Sort mail into tabs and flag what needs a reply. Off, there’s one inbox.
Default
true.A short summary on long conversations.
Default
true.Draft replies written for you. Nothing is sent without you.
Default
true.Days without an answer before mail you sent comes back: 2, 3, 5 or 7. 0 turns it off.
Default
3.Warn about mail that looks forged.
Default
true.The address a reply goes from: the one the mail reached (
received), or yourdefaultaddress.One of
receiveddefaultDefault
received.Whether your vacation replies may go out.
Default
false.Forwarding rules: allowed with a
passkeycheck, ornever.One of
passkeyneverDefault
passkey.How long a new sign-in lasts, in days: 30, 7 or 0.5 (12 hours).
Default
30.
import { Mailset } from 'mailset';
// Reads MAILSET_TOKEN from the environment.
const mailset = new Mailset();
const answer = await mailset.settings.get();
console.log(answer);
from mailset import Mailset
# Reads MAILSET_TOKEN from the environment.
mailset = Mailset()
answer = mailset.settings.get()
print(answer)
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)
}
require 'mailset'
# Reads MAILSET_TOKEN from the environment.
mailset = Mailset::Client.new
answer = mailset.settings.get
p answer
<?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;
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);
// Reads MAILSET_TOKEN from the environment.
let mailset = mailset::Client::from_env()?;
let answer = mailset.settings().get().await?;
println!("{answer:?}");
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 shows how.
mailset settings get
{
"ok": true,
"data": {
"density": "comfortable",
"inboxType": "sections",
"inboxTabs": [
"primary"
],
"allInboxesHidden": [
"moc.elpmaxe@olleh"
],
"readingPane": "none",
"timeFormat": "24h",
"undoSeconds": 10,
"conversations": true,
"sendArchive": true,
"images": "ask",
"originalColors": [
settings.set
Change settings.
POST/v1/settings.set
Parameters
How tight lists are:
comfortableorcompact.One of
comfortablecompactHow the inbox is cut up:
sections,tabs, unread first (unread) or starred first (starred).One of
sectionstabsunreadstarredWhich categories are tabs of their own. The rest fold into Updates.
primaryalways stays.One of
primaryupdatesnewsletterspromotionsreceiptsnotificationsAt most 6 items.
Mailboxes kept out of All inboxes. A new mailbox is in until you say otherwise.
At most 500 items.
Where an open conversation shows beside the list:
none,rightorbelow.One of
nonerightbelowHow times read: 24-hour (18:00) or 12-hour (6:00 PM).
One of
24h12hSeconds mail waits before it leaves, so it can be taken back: 5, 10, 20 or 30.
On folds older messages in a conversation. Off opens them all.
Show a button that sends a reply and archives the conversation.
Remote images in mail:
askbefore showing them, oralwaysshow them.One of
askalwaysSenders 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.
Ask before Unsubscribe opens a sender’s own page in a new tab.
Keyboard shortcuts on or off.
Which new mail notifies you:
all,important, only mail frompeople, ornone.One of
allimportantpeoplenoneMailboxes that notify differently, by address:
sameasnotify,allornone.What a notification shows: the sender and subject (
full), only thesender, ornone.One of
fullsendernonePush notifications on or off.
Quiet hours: notifications from 22:00 to 07:00 are held, then arrive as one.
A summary of new mail filed in your inbox:
off,dailyorweekly.One of
offdailyweeklyAI on your mail. Off, none of your mail goes to a model.
Sort mail into tabs and flag what needs a reply. Off, there’s one inbox.
A short summary on long conversations.
Draft replies written for you. Nothing is sent without you.
Days without an answer before mail you sent comes back: 2, 3, 5 or 7. 0 turns it off.
Warn about mail that looks forged.
The address a reply goes from: the one the mail reached (
received), or yourdefaultaddress.One of
receiveddefaultWhether your vacation replies may go out.
Forwarding rules: allowed with a
passkeycheck, ornever.One of
passkeyneverHow long a new sign-in lasts, in days: 30, 7 or 0.5 (12 hours).
Returns
data is an object with:
How tight lists are:
comfortableorcompact.One of
comfortablecompactDefault
comfortable.How the inbox is cut up:
sections,tabs, unread first (unread) or starred first (starred).One of
sectionstabsunreadstarredDefault
sections.Which categories are tabs of their own. The rest fold into Updates.
primaryalways stays.One of
primaryupdatesnewsletterspromotionsreceiptsnotificationsDefault
["primary","updates","newsletters","promotions"]. At most 6 items.Mailboxes kept out of All inboxes. A new mailbox is in until you say otherwise.
Default
[]. At most 500 items.Where an open conversation shows beside the list:
none,rightorbelow.One of
nonerightbelowDefault
none.How times read: 24-hour (18:00) or 12-hour (6:00 PM).
One of
24h12hDefault
24h.Seconds mail waits before it leaves, so it can be taken back: 5, 10, 20 or 30.
Default
10.On folds older messages in a conversation. Off opens them all.
Default
true.Show a button that sends a reply and archives the conversation.
Default
true.Remote images in mail:
askbefore showing them, oralwaysshow them.One of
askalwaysDefault
ask.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.Ask before Unsubscribe opens a sender’s own page in a new tab.
Default
true.Keyboard shortcuts on or off.
Default
true.Which new mail notifies you:
all,important, only mail frompeople, ornone.One of
allimportantpeoplenoneDefault
important.Mailboxes that notify differently, by address:
sameasnotify,allornone.Default
{}.What a notification shows: the sender and subject (
full), only thesender, ornone.One of
fullsendernoneDefault
sender.Push notifications on or off.
Default
true.Quiet hours: notifications from 22:00 to 07:00 are held, then arrive as one.
Default
true.A summary of new mail filed in your inbox:
off,dailyorweekly.One of
offdailyweeklyDefault
off.AI on your mail. Off, none of your mail goes to a model.
Default
true.Sort mail into tabs and flag what needs a reply. Off, there’s one inbox.
Default
true.A short summary on long conversations.
Default
true.Draft replies written for you. Nothing is sent without you.
Default
true.Days without an answer before mail you sent comes back: 2, 3, 5 or 7. 0 turns it off.
Default
3.Warn about mail that looks forged.
Default
true.The address a reply goes from: the one the mail reached (
received), or yourdefaultaddress.One of
receiveddefaultDefault
received.Whether your vacation replies may go out.
Default
false.Forwarding rules: allowed with a
passkeycheck, ornever.One of
passkeyneverDefault
passkey.How long a new sign-in lasts, in days: 30, 7 or 0.5 (12 hours).
Default
30.
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);
from mailset import Mailset
# Reads MAILSET_TOKEN from the environment.
mailset = Mailset()
answer = mailset.settings.set(
{"density": "compact", "undo_seconds": 20}
)
print(answer)
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)
}
require 'mailset'
# Reads MAILSET_TOKEN from the environment.
mailset = Mailset::Client.new
answer = mailset.settings.set(
density: 'compact',
undo_seconds: 20
)
p answer
<?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;
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);
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 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 shows how.
mailset settings set --density compact --undo-seconds 20
{
"ok": true,
"data": {
"density": "comfortable",
"inboxType": "sections",
"inboxTabs": [
"primary"
],
"allInboxesHidden": [
"moc.elpmaxe@olleh"
],
"readingPane": "none",
"timeFormat": "24h",
"undoSeconds": 10,
"conversations": true,
"sendArchive": true,
"images": "ask",
"originalColors": [