Hoppa till innehållet

After sending

Suppressions

Each stream of a server keeps its own list of addresses it will not send to. If any recipient of a message is suppressed, Sendora refuses the whole message with recipient_suppressed and sends it to no one. The error lists the suppressed addresses and the stream. A broadcast instead drops suppressed addresses and sends to the rest.

The suppression calls take streamId, and without it they mean the server’s default transactional stream.

How an address gets there

ReasonAdded whenWho can lift it
hard_bounceA receiver refused the address for good, for instance because the mailbox does not exist. The bounced webhook tells you which message.You
spam_complaintThe recipient reported a message as spam, and the receiver told Sendora through its feedback loop. The spam_complaint webhook tells you.Sendora support only
unsubscribeThe recipient used the unsubscribe link of a message on a broadcast stream, or their mail client’s one-click button. The unsubscribed webhook tells you.Sendora support only
manualYou added the address in the dashboard. The API cannot add one.You

After one hard bounce, every later send to that recipient on the stream fails with recipient_suppressed. A soft bounce or a deferral never suppresses a recipient.

Read the list

GET /v1/suppressions?limit=100
curl 'https://api.sendora.se/v1/suppressions?limit=100' \
  -H "Authorization: Bearer $SENDORA_API_TOKEN"
import { Sendora } from '@sendora/sdk';

const sendora = new Sendora({
  token: process.env.SENDORA_API_TOKEN,
});

const { suppressions } = await sendora.suppressions.list({
  limit: 100,
});

for (const entry of suppressions) {
  console.log(
    entry.address,
    entry.reason,
    entry.createdAt,
  );
}
import os

from sendora import Sendora

sendora = Sendora(os.environ["SENDORA_API_TOKEN"])

page = sendora.suppressions.list(limit=100)

for entry in page.suppressions:
    print(entry.address, entry.reason, entry.created_at)
<?php

use Sendora\Sendora;

// The key comes from SENDORA_API_TOKEN.
$sendora = new Sendora();

$page = $sendora->suppressions->list(limit: 100);

foreach ($page->suppressions as $entry) {
    printf(
        "%s %s %s\n",
        $entry->address,
        $entry->reason,
        $entry->createdAt->format('c'),
    );
}
import se.sendora.Sendora;
import se.sendora.model.SuppressionPage;
import se.sendora.model.SuppressionQuery;

class ListSuppressions {
  public static void main(String[] args) {
    SuppressionQuery query =
        SuppressionQuery.builder().limit(100).build();

    // The server key comes from SENDORA_API_TOKEN.
    try (var sendora = Sendora.fromEnv()) {
      SuppressionPage page =
          sendora.suppressions().list(query);
      for (var entry : page.suppressions()) {
        System.out.printf(
            "%s %s %s%n",
            entry.address(),
            entry.reasonAsString(),
            entry.createdAt());
      }
    }
  }
}

Response

{
  "suppressions": [
    {
      "streamId": "3d1a2b4c-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "address": "bounced@example.com",
      "reason": "hard_bounce",
      "messageId": "5f432ffd-c005-499b-aa3a-5b8a088ea20e",
      "createdAt": "2026-09-14T12:00:05.000Z"
    }
  ],
  "next": null
}

The list is newest first, in the page sizes on Limits. Pass next as after for the next page. Each entry has the streamId of its list. To read another stream’s list, pass that stream’s streamId in the query. A stream of another server fails with stream_not_found.

Each stream’s Suppressions tab, under its server’s Streams tab in Servers, shows the list. There you add addresses, and lift the entries you may lift.

Lift a suppression

Lift a hard bounce or a manual entry when the recipient can take mail again, for instance once they have confirmed a corrected mailbox. The address travels in the request body, never in a URL. streamId in the body names the stream, and without it the default one.

POST /v1/suppressions/delete
curl -X POST https://api.sendora.se/v1/suppressions/delete \
  -H "Authorization: Bearer $SENDORA_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "address": "bounced@example.com"
}'
import { Sendora } from '@sendora/sdk';

const sendora = new Sendora({
  token: process.env.SENDORA_API_TOKEN,
});

await sendora.suppressions.delete({
  address: 'bounced@example.com',
});
import os

from sendora import Sendora

sendora = Sendora(os.environ["SENDORA_API_TOKEN"])

sendora.suppressions.delete(address="bounced@example.com")
<?php

use Sendora\Sendora;

// The key comes from SENDORA_API_TOKEN.
$sendora = new Sendora();

$sendora->suppressions->delete(
    address: 'bounced@example.com',
);
import se.sendora.Sendora;
import se.sendora.model.DeleteSuppressionRequest;

class LiftSuppression {
  public static void main(String[] args) {
    DeleteSuppressionRequest request =
        DeleteSuppressionRequest.builder()
            .address("bounced@example.com")
            .build();

    // The server key comes from SENDORA_API_TOKEN.
    try (var sendora = Sendora.fromEnv()) {
      sendora.suppressions().delete(request);
    }
  }
}

Lifting a spam complaint or the recipient’s own unsubscribe fails with spam_complaint_locked or unsubscribe_locked. To have one lifted, write to support@sendora.se with the recipient’s own request and the entry’s streamId and messageId from the list. Leave the address out, since the stream and the message are enough to find the entry.

The not-tracked list

Each server keeps a list of addresses that are never tracked, on any of its streams. Mail to a listed address still goes out, without tracked links or a pixel. Opens and clicks of mail already sent to it are not recorded either. This list has nothing to do with the suppression lists above, and an address can be on both.

The list works whether tracking is on or not, so you can list an address before your first tracked mail.

SourceAdded whenWho can remove it
manualYou added the address.You
recipientThe recipient asked not to be tracked.You, after new consent

Add an address with the server’s key. The address travels in the request body, never in a URL. An address already on the list changes nothing: the entry comes back as it stands, so a repeat is safe.

POST /v1/tracking-opt-outs
curl -X POST https://api.sendora.se/v1/tracking-opt-outs \
  -H "Authorization: Bearer $SENDORA_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "address": "anna@example.com"
}'
import { Sendora } from '@sendora/sdk';

const sendora = new Sendora({
  token: process.env.SENDORA_API_TOKEN,
});

const entry = await sendora.trackingOptOuts.add({
  address: 'anna@example.com',
});

console.log(entry.source, entry.createdAt);
import os

from sendora import Sendora

sendora = Sendora(os.environ["SENDORA_API_TOKEN"])

entry = sendora.tracking_opt_outs.add(
    address="anna@example.com",
)

print(entry.source, entry.created_at)
<?php

use Sendora\Sendora;

// The key comes from SENDORA_API_TOKEN.
$sendora = new Sendora();

$entry = $sendora->trackingOptOuts->add(
    address: 'anna@example.com',
);

printf(
    "%s %s\n",
    $entry->source,
    $entry->createdAt->format('c'),
);
import se.sendora.Sendora;
import se.sendora.model.TrackingOptOut;

class AddTrackingOptOut {
  public static void main(String[] args) {
    String address = "anna@example.com";

    // The server key comes from SENDORA_API_TOKEN.
    try (var sendora = Sendora.fromEnv()) {
      TrackingOptOut entry =
          sendora.trackingOptOuts().add(address);
      System.out.printf(
          "%s %s%n",
          entry.sourceAsString(), entry.createdAt());
    }
  }
}

Response

{
  "address": "anna@example.com",
  "source": "manual",
  "messageId": null,
  "createdAt": "2026-11-06T12:00:00.000Z"
}

Read the list, newest first, in the page sizes on Limits. Pass next as after for the next page.

GET /v1/tracking-opt-outs?limit=100
curl 'https://api.sendora.se/v1/tracking-opt-outs?limit=100' \
  -H "Authorization: Bearer $SENDORA_API_TOKEN"
import { Sendora } from '@sendora/sdk';

const sendora = new Sendora({
  token: process.env.SENDORA_API_TOKEN,
});

const { trackingOptOuts } =
  await sendora.trackingOptOuts.list({ limit: 100 });

for (const entry of trackingOptOuts) {
  console.log(entry.address, entry.source);
}
import os

from sendora import Sendora

sendora = Sendora(os.environ["SENDORA_API_TOKEN"])

page = sendora.tracking_opt_outs.list(limit=100)

for entry in page.tracking_opt_outs:
    print(entry.address, entry.source)
<?php

use Sendora\Sendora;

// The key comes from SENDORA_API_TOKEN.
$sendora = new Sendora();

$page = $sendora->trackingOptOuts->list(limit: 100);

foreach ($page->trackingOptOuts as $entry) {
    printf(
        "%s %s\n",
        $entry->address ?? 'erased',
        $entry->source,
    );
}
import se.sendora.Sendora;
import se.sendora.model.PageQuery;
import se.sendora.model.TrackingOptOutPage;

class ListTrackingOptOuts {
  public static void main(String[] args) {
    PageQuery query =
        PageQuery.builder().limit(100).build();

    // The server key comes from SENDORA_API_TOKEN.
    try (var sendora = Sendora.fromEnv()) {
      TrackingOptOutPage page =
          sendora.trackingOptOuts().list(query);
      for (var entry : page.trackingOptOuts()) {
        System.out.printf(
            "%s %s%n",
            entry.address().orElse("erased"),
            entry.sourceAsString());
      }
    }
  }
}

Response

{
  "trackingOptOuts": [
    {
      "address": "anna@example.com",
      "source": "manual",
      "messageId": null,
      "createdAt": "2026-11-06T12:00:00.000Z"
    }
  ],
  "next": null
}

Remove an address when it may be tracked again. Remove an entry whose source is recipient only after the recipient has given new consent. An address that is not on the list fails with not_found.

POST /v1/tracking-opt-outs/delete
curl -X POST https://api.sendora.se/v1/tracking-opt-outs/delete \
  -H "Authorization: Bearer $SENDORA_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "address": "anna@example.com"
}'
import { Sendora } from '@sendora/sdk';

const sendora = new Sendora({
  token: process.env.SENDORA_API_TOKEN,
});

await sendora.trackingOptOuts.delete({
  address: 'anna@example.com',
});
import os

from sendora import Sendora

sendora = Sendora(os.environ["SENDORA_API_TOKEN"])

sendora.tracking_opt_outs.delete(
    address="anna@example.com",
)
<?php

use Sendora\Sendora;

// The key comes from SENDORA_API_TOKEN.
$sendora = new Sendora();

$sendora->trackingOptOuts->delete(
    address: 'anna@example.com',
);
import se.sendora.Sendora;

class DeleteTrackingOptOut {
  public static void main(String[] args) {
    String address = "anna@example.com";

    // The server key comes from SENDORA_API_TOKEN.
    try (var sendora = Sendora.fromEnv()) {
      sendora.trackingOptOuts().delete(address);
    }
  }
}

The list is on each server’s Settings page in Servers, under the Not tracked tab. There you add, find and remove addresses too.

Let a recipient ask

Write {{ tracking_opt_out_url }} in the text or the HTML of a message on any stream, where the link should go. Sendora then sends one copy per recipient, each with the recipient’s own link, so a message with large attachments costs a copy per recipient. A substitution with that name fails with invalid_request.

The link opens a page in Swedish and English that says what its button does. Opening the page changes nothing, so a mail scanner that follows links cannot opt anyone out.

The button puts the address on the list with the source recipient, and your webhook gets tracking_opted_out. Pressing it again changes nothing. If you had added the address yourself, the entry becomes the recipient’s, and the dashboard warns you before you remove it.

The link keeps working after the message has left the log, and after an erasure, until the account closes. Sendora then knows only a keyed hash of the address, so no webhook goes. The entry has address set to null, unless you had added the address yourself. Later mail to the address stays untracked.

Erasure requests

When a recipient asks you to erase their data, erase them with an account key. Every message to or from the address, sent and received, loses its content, and the address becomes a pseudonym in the log of every server.

POST /v1/erasures
curl -X POST https://api.sendora.se/v1/erasures \
  -H "Authorization: Bearer $SENDORA_ACCOUNT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "address": "anna@example.com"
}'
import { SendoraAccount } from '@sendora/sdk';

const account = new SendoraAccount({
  token: process.env.SENDORA_ACCOUNT_TOKEN,
});

const erasure = await account.erasures.create({
  address: 'anna@example.com',
});

console.log(erasure.erasureId, erasure.status);
import os

from sendora import SendoraAccount

account = SendoraAccount(
    os.environ["SENDORA_ACCOUNT_TOKEN"]
)

erasure = account.erasures.create(
    address="anna@example.com"
)
print(erasure.erasure_id, erasure.status)
<?php

use Sendora\SendoraAccount;

// The key comes from SENDORA_ACCOUNT_TOKEN.
$account = new SendoraAccount();

$erasure = $account->erasures->create(
    address: 'anna@example.com',
);

echo $erasure->erasureId, ' ', $erasure->status, "\n";
import se.sendora.SendoraAccount;
import se.sendora.model.Erasure;

class EraseAddress {
  public static void main(String[] args) {
    // The account key comes from SENDORA_ACCOUNT_TOKEN.
    try (var account = SendoraAccount.fromEnv()) {
      Erasure erasure =
          account.erasures().create("anna@example.com");
      System.out.printf(
          "%s %s%n",
          erasure.erasureId(), erasure.statusAsString());
    }
  }
}

Response

{
  "erasureId": "6f1d2c3b-4a5e-4f60-8b7a-9c8d7e6f5a41",
  "status": "pending",
  "createdAt": "2026-10-04T12:00:00.000Z",
  "completedAt": null,
  "pseudonym": null,
  "messages": null,
  "receivedMessages": null
}

The erasure returns pending, and Sendora carries it out within a minute. Read the erasure to see it done, with the pseudonym and how many messages lost their content.

On the suppression lists, a hard bounce is removed. A spam complaint, an unsubscribe or a manual entry keeps only a keyed hash of the address, so the recipient stays protected from further mail without the address being stored. An erasure blocks nothing else: later mail to or from the address is sent and received as before.

On the not-tracked list, an entry also keeps only a keyed hash of the address, so later mail to the address stays untracked. The list shows that entry with address set to null, and adding the address again or the recipient asking again does not bring it back. To remove the entry, name the address: the keyed hash finds it. Nobody can remove it without the address, since nobody has consent from a person they cannot name.