Follow-ups

Follow-ups

Email you sent that still waits for an answer.

An SDK signs every request with your key: Authentication. To sign one yourself, see Calling the API without an SDK.

On this page
  1. followups.list
  2. followups.dismiss

followups.list

List mail you sent that is waiting for an answer.

POST/v1/followups.list

API token

Parameters

It takes no input: send an empty object.

Returns

data is a list of objects, each with:

  • threadIdstring
  • mailboxstring
  • subjectstring
  • sentAtnumber
  • remindedAtnullable number

    Null while it’s waiting.

In the CLIErrors

import { Mailset } from 'mailset';

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

const answer = await mailset.followups.list();
console.log(answer);
from mailset import Mailset

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

answer = mailset.followups.list()
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.Followups.List(ctx)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(answer)
}
require 'mailset'

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

answer = mailset.followups.list
p answer
<?php

require 'vendor/autoload.php';

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

$answer = $mailset->followups->list();
echo json_encode($answer, JSON_PRETTY_PRINT), PHP_EOL;
import app.mailset.Mailset;
import app.mailset.model.FollowUp;
import java.util.List;

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

List<FollowUp> answer = mailset.followups().list();
System.out.println(answer);
// Reads MAILSET_TOKEN from the environment.
let mailset = mailset::Client::from_env()?;

let answer = mailset.followups().list().await?;
println!("{answer:?}");
curl https://mailset.app/v1/followups.list \
  -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 followups list
Response
{
  "ok": true,
  "data": [
    {
      "threadId": "out_3f9a1c0e7b2d",
      "mailbox": "text",
      "subject": "Your Acme receipt",
      "sentAt": 1796048940000,
      "remindedAt": 1796048940000
    }
  ]
}

followups.dismiss

Stop reminding you about a conversation.

POST/v1/followups.dismiss

API token

Parameters

  • idstringrequired

    The conversation’s id.

Returns

data is an object with:

  • dismissedboolean

In the CLIErrors

import { Mailset } from 'mailset';

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

const answer = await mailset.followups.dismiss({
	id: "t_5d2c8a1f9e3b47c6a0d1e2f3",
});
console.log(answer);
from mailset import Mailset

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

answer = mailset.followups.dismiss(
    {"id": "t_5d2c8a1f9e3b47c6a0d1e2f3"}
)
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.FollowupsDismissParams{
		ID: "t_5d2c8a1f9e3b47c6a0d1e2f3",
	}
	answer, err := client.Followups.Dismiss(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.followups.dismiss(
  id: 't_5d2c8a1f9e3b47c6a0d1e2f3'
)
p answer
<?php

require 'vendor/autoload.php';

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

$answer = $mailset->followups->dismiss([
    'id' => 't_5d2c8a1f9e3b47c6a0d1e2f3',
]);
echo json_encode($answer, JSON_PRETTY_PRINT), PHP_EOL;
import app.mailset.Mailset;
import app.mailset.model.FollowupsDismissParams;
import app.mailset.model.FollowupsDismissResult;

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

var params = FollowupsDismissParams.builder()
        .id("t_5d2c8a1f9e3b47c6a0d1e2f3")
        .build();
FollowupsDismissResult answer =
        mailset.followups().dismiss(params);
System.out.println(answer);
use mailset::types::FollowupsDismissParams;

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

let answer = mailset
    .followups()
    .dismiss(FollowupsDismissParams {
        id: "t_5d2c8a1f9e3b47c6a0d1e2f3".into(),
    })
    .await?;
println!("{answer:?}");
curl https://mailset.app/v1/followups.dismiss \
  -H "Authorization: Bearer $TOKEN" \
  -H "ms-time: $MS_TIME" \
  -H "ms-proof: $MS_PROOF" \
  -H "Content-Type: application/json" \
  -d '{"input":{"id":"t_5d2c8a1f9e3b47c6a0d1e2f3"}}'

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 followups dismiss t_5d2c8a1f9e3b47c6a0d1e2f3
Response
{
  "ok": true,
  "data": {
    "dismissed": true
  }
}