Hoppa till innehållet

Reference

Changelog

What each release of the SDKs changed, newest first. A major version can break code written for the one before it, and its entry says what to change.

TypeScript SDK

The package is @sendora/sdk on npm.

5.7.0

There is a new error code, daily_cap_reached. An account can have a daily cap, and the code means that its live servers have sent all of the day’s emails. It has scope, cap, used and resetsAt, and is not retryable. A batch item’s error can be it too. A limit’s period from server.get() can be day, the calendar day in UTC. payment_required also means that the account’s plan does not include broadcasts, and inboundCap is also null for an account whose plan includes no received mail. No call changes.

5.6.1

The README and the skill say that opened@ and clicked@simulator.sendora.se act out an open and a click on a test server’s tracked mail. No call changes.

5.6.0

email.send(), each message of email.sendBatch() and broadcasts.send() take trackOpens and trackLinks. They switch tracking on or off for that mail, whatever its stream’s switches say. Each Stream has trackOpens and trackLinks, its own switches. There are two new error codes, tracking_not_confirmed and tracking_unavailable, and a batch item’s error can be either. No call changes.

5.5.1

The README no longer says that tracking is not open to accounts. It says that an administrator switches tracking on for a stream in the dashboard. No call changes.

5.5.0

A new webhook event, tracking_opted_out, with the type TrackingOptedOutEvent: a recipient asked not to be tracked. webhooks.create() without events takes it. A switch over WebhookEventName needs the new value. An entry’s address can also be null when the recipient asked from mail that had left the log. No call changes.

5.4.0

sendora.trackingOptOuts lists, adds and removes the addresses on a server’s not-tracked list: list(), listAll(), add() and delete(). No call changes.

5.3.0

Two webhook events, opened and clicked, with the types OpenedEvent and ClickedEvent. A webhook gets them only if it names them, so webhooks.create() without events takes every other event. A switch over WebhookEventName needs the two new values. No call changes. See Webhooks.

5.2.0

Each recipient of a message has tracked, opens, clicks, firstOpenAt and firstHumanOpenAt. messages.get() returns tracking, and its timeline holds Open and Click events, each with its tracking. broadcasts.get() returns BroadcastDetail, a Broadcast with opened, openedByPeople, clicked, clickedByPeople and links. See Opens and clicks. A switch over MessageEventType needs the two new values. No call changes.

5.1.0

account.trackingDomains adds, lists, reads, checks and removes tracking domains. There are five new error codes: tracking_domain_exists, tracking_domain_limit, tracking_host_is_sending_domain, tracking_host_not_verified and tracking_host_taken. trackingDomainId on an error gives the id of the host that tracking_domain_exists found. No other call changes.

5.0.2

The README says what payment_required means in each of its four cases: the first payment has not arrived, an invoice is unpaid, payment is paused, or the subscription has ended. No call changes.

5.0.1

The type comments on a limit’s period, inboundCap and the received-mail cap’s events say what an account’s month is. An account that pays by card counts a month from the day and time of its first payment, and any other account the calendar month in UTC. No call changes.

5.0.0

The error code unpaid_limit_reached is gone, because the API no longer returns it. Two changes break code written for 4.x that uses it:

  • SendoraErrorCode and a batch item’s error no longer include unpaid_limit_reached.
  • SendoraError, its toJSON() and a batch item’s result no longer have unpaidOre, limitOre or priceOre.

A 402 from a send, a batch or a broadcast is now always payment_required, which is not retryable. No call changes.

Upgrade from 4.x

  1. Install the new version with npm install @sendora/sdk@5.
  2. Remove each comparison with unpaid_limit_reached and each read of unpaidOre, limitOre or priceOre. TypeScript reports every one.

4.4.1

A path id that is empty, . or .. throws TypeError before any request. Such an id made the URL skip a segment of the path, which the API then refused. No call changes.

4.4.0

sendora.messages.search() finds part of an address: a recipient of three characters or more that is not a whole address matches anywhere in one, such as kommun.se. A whole address still matches exactly. Its status also takes an array, for messages with a recipient in any of the states.

4.3.0

A new error code, unpaid_limit_reached: a send would take what the account owes for emails past its limit. The error and a batch item’s result carry unpaidOre, limitOre and priceOre, in hundredths of a krona excluding VAT. They carry retryAfter while a charge under way makes room, and only then is the error retryable. No call changes.

4.2.0

The account’s monthly cap on received mail. sendora.server.get() returns it as inboundCap, with its limit, used and resetsAt, apart from the limits on sending; it is null on a test server. Two events say that received mail nears or reaches it: inbound_cap_warning and inbound_cap_reached, typed as InboundCapWarningEvent and InboundCapReachedEvent. Limits says what the cap does.

4.1.1

The README says what payment_required means in both of its cases: the account’s first payment has not arrived, or an unpaid charge has stopped live sending. No call changes.

4.1.0

Three error codes that a connected app meets when it calls through Sendora’s MCP server: not_for_connections, read_only_connection and test_server_only. A key never meets them. No call changes.

4.0.0

Two changes break code written for 3.x:

  • Values that said tenant now say account. The error codes tenant_paused and tenant_not_active are now account_paused and account_not_active. A limit’s scope is account where it was tenant. That holds on rate_limited and monthly_cap_reached, in the limits that sendora.server.get() returns, and on the cap_warning and cap_reached events.
  • verifyWebhook and webhooks.receive no longer throw unexpected_response for an event the SDK does not know. They return an UnknownEvent: its event is unknown, name holds the event’s name, and data holds the payload as it came. A signed body that is no event at all still throws unexpected_response. Verify the signature shows the verifier.

Upgrade from 3.x

  1. Install the new version with npm install @sendora/sdk@4.
  2. Where you compare error.code with tenant_paused or tenant_not_active, compare it with account_paused or account_not_active instead.
  3. Where you compare a scope with tenant, compare it with account.
  4. If your code checks that a switch over event.event handles every event, add a case for unknown.

Python SDK

The package is sendora on PyPI.

2.7.1

verify_webhook takes the same whitespace around a part of the Sendora-Signature header as the other SDKs do. It takes a byte order mark, and no longer takes U+0085 or an ASCII separator. Every header that Sendora sends verifies as before. No call changes.

2.7.0

There is a new error code, daily_cap_reached. An account can have a daily cap, and the code means that its live servers have sent all of the day’s emails. It is a RateLimitError with scope, cap, used and resets_at, and is not retried. A ServerLimit’s period can be day, the calendar day in UTC. payment_required also means that the account’s plan does not include broadcasts, and inbound_cap is also None for an account whose plan includes no received mail. No call changes.

2.6.2

The README says that an administrator creates an account key under Account › Account keys, the page’s name in the dashboard. No call changes.

2.6.1

The README and the skill say that opened@ and clicked@simulator.sendora.se act out an open and a click on a test server’s tracked mail. No call changes.

2.6.0

email.send, each message of email.send_batch and broadcasts.send take track_opens and track_links. They switch tracking on or off for that mail, whatever its stream’s switches say. Each Stream has track_opens and track_links, its own switches. There are two new error codes, tracking_not_confirmed and tracking_unavailable. No call changes.

2.5.1

The README no longer says that tracking is not open to accounts. It says that an administrator switches tracking on for a stream in the dashboard. No call changes.

2.5.0

A new webhook event, tracking_opted_out, with the type TrackingOptedOutEvent: a recipient asked not to be tracked. webhooks.create() without events takes it. An entry’s address can also be None when the recipient asked from mail that had left the log. No call changes.

2.4.0

sendora.tracking_opt_outs lists, adds and removes the addresses on a server’s not-tracked list: list(), list_all(), add() and delete(). No call changes.

2.3.0

Two webhook events, opened and clicked, with the classes OpenedEvent and ClickedEvent. A webhook gets them only if it names them, so webhooks.create() without events takes every other event. No call changes. See Webhooks.

2.2.0

Each MessageRecipient has tracked, opens, clicks, first_open_at and first_human_open_at. messages.get() returns tracking, and its timeline holds Open and Click events, each with its tracking. broadcasts.get() returns BroadcastDetail, a Broadcast with opened, opened_by_people, clicked, clicked_by_people and links. See Opens and clicks. No call changes.

2.1.0

account.tracking_domains adds, lists, reads, checks and removes tracking domains. There are five new error codes: tracking_domain_exists, tracking_domain_limit, tracking_host_is_sending_domain, tracking_host_not_verified and tracking_host_taken. No other call changes.

2.0.2

The README says what payment_required means in each of its four cases: the first payment has not arrived, an invoice is unpaid, payment is paused, or the subscription has ended. No call changes.

2.0.1

The docstrings of ServerLimit.period, InboundCap.limit and a refused batch item’s resets_at say what an account’s month is. An account that pays by card counts a month from the day and time of its first payment, and any other account the calendar month in UTC. No call changes.

2.0.0

The error code unpaid_limit_reached is gone, because the API no longer returns it. Two changes break code written for 1.x that uses it:

  • SendoraErrorCode and a batch item’s code no longer include unpaid_limit_reached.
  • SendoraError and RefusedBatchItem no longer have unpaid_ore, limit_ore or price_ore, so reading one raises AttributeError.

A 402 from a send, a batch or a broadcast is now always payment_required, which has no retry_after and is not retryable. No call changes.

Upgrade from 1.x

  1. Install the new version with pip install "sendora~=2.0".
  2. Remove each comparison with unpaid_limit_reached and each read of unpaid_ore, limit_ore or price_ore.

1.4.1

A path id that is empty, . or .. raises ValueError before any request. Such an id made the HTTP client drop segments of the path: account.servers.tokens.revoke(server_id, "..") deleted the server, and sendora.webhooks.delete_secret(webhook_id, "..") deleted the webhook. Upgrade if an id can come from input you do not control.

1.4.0

sendora.messages.search() finds part of an address: a recipient of three characters or more that is not a whole address matches anywhere in one, such as kommun.se. A whole address still matches exactly. Its status also takes a list, for messages with a recipient in any of the states.

1.3.0

A new error code, unpaid_limit_reached: a send would take what the account owes for emails past its limit. The error and a batch item’s result carry unpaid_ore, limit_ore and price_ore, in hundredths of a krona excluding VAT. They carry retry_after while a charge under way makes room, and only then is the error retryable. No call changes.

1.2.0

The account’s monthly cap on received mail. sendora.server.get() returns it as inbound_cap, with its limit, used and resets_at, apart from the limits on sending; it is None on a test server. Two events say that received mail nears or reaches it: inbound_cap_warning and inbound_cap_reached, read as InboundCapWarningEvent and InboundCapReachedEvent. Limits says what the cap does.

1.1.1

The README says what payment_required means in both of its cases: the account’s first payment has not arrived, or an unpaid charge has stopped live sending. No call changes.

1.1.0

Three error codes that a connected app meets when it calls through Sendora’s MCP server: not_for_connections, read_only_connection and test_server_only. A key never meets them. No call changes.

1.0.0

The first stable release. From 1.0.0 on, only a new major version can break your code: a renamed or removed method, argument or field, or a changed error code. A minor version adds methods, fields, codes or events, and a patch fixes a bug.

Upgrade from 0.x

  1. Install the new version with pip install "sendora~=1.0".
  2. If you wrote for a version before 0.9.0, compare error.code with account_paused or account_not_active where you compared it with tenant_paused or tenant_not_active.
  3. If you wrote for a version before 0.9.0, compare a scope with account where you compared it with tenant.

PHP SDK

The package is sendora/sendora-php on Packagist.

1.9.1

WebhookVerifier::verify() takes the same whitespace around a part of the Sendora-Signature header as the other SDKs do, such as a no-break space. Every header that Sendora sends verifies as before. The README says that an administrator creates an account key under Account › Account keys, the page’s name in the dashboard. No call changes.

1.9.0

There is a new error code, daily_cap_reached, the ErrorCode case DailyCapReached. An account can have a daily cap, and the code means that its live servers have sent all of the day’s emails. It is a RateLimitException with scope, cap, used and resetsAt, and is not retried. A ServerLimit’s period can be day, the LimitPeriod case Day. payment_required also means that the account’s plan does not include broadcasts, and inboundCap is also null for an account whose plan includes no received mail. No call changes.

1.8.0

A new class, SendoraRequestParser, takes webhooks in Symfony’s Webhook component, from symfony/webhook 6.4 to 8.x. It checks each delivery’s signature. The seven events about a message become Symfony’s MailerDeliveryEvent and MailerEngagementEvent, and every other event a RemoteEvent with its own name. The README shows the routing. No call changes.

1.7.1

The README and the skill say that opened@ and clicked@simulator.sendora.se act out an open and a click on a test server’s tracked mail. No call changes.

1.7.0

The mailer driver reads X-Sendora-Track-Opens and X-Sendora-Track-Links as the send’s trackOpens and trackLinks, as SMTP submission does. Each is true or false. Another value fails the send before anything goes out. No call changes.

1.6.0

email->send(), each message of email->sendBatch() and broadcasts->send() take trackOpens and trackLinks. They switch tracking on or off for that mail, whatever its stream’s switches say. The two arguments come last, after idempotencyKey. Each Stream has trackOpens and trackLinks, its own switches. There are two new error codes, ErrorCode::TrackingNotConfirmed and ErrorCode::TrackingUnavailable. No call changes.

1.5.1

The README no longer says that tracking is not open to accounts. It says that an administrator switches tracking on for a stream in the dashboard. No call changes.

1.5.0

A new webhook event, tracking_opted_out, with the class TrackingOptedOutEvent: a recipient asked not to be tracked. webhooks->create() without events takes it. An entry’s address can also be null when the recipient asked from mail that had left the log. No call changes.

1.4.0

$sendora->trackingOptOuts lists, adds and removes the addresses on a server’s not-tracked list: list(), listAll(), add() and delete(). No call changes.

1.3.0

Two webhook events, opened and clicked, with the classes OpenedEvent and ClickedEvent. A webhook gets them only if it names them, so webhooks->create() without events takes every other event. No call changes. See Webhooks.

1.2.0

Each MessageRecipient has tracked, opens, clicks, firstOpenAt and firstHumanOpenAt. messages->get() returns tracking, and its timeline holds Open and Click events, each with its tracking. broadcasts->get() returns BroadcastDetail, a Broadcast with opened, openedByPeople, clicked, clickedByPeople and links. See Opens and clicks. No call changes.

1.1.0

$account->trackingDomains adds, lists, reads, checks and removes tracking domains. There are five new error codes: tracking_domain_exists, tracking_domain_limit, tracking_host_is_sending_domain, tracking_host_not_verified and tracking_host_taken. No other call changes.

1.0.3

The README says what payment_required means in each of its four cases: the first payment has not arrived, an invoice is unpaid, payment is paused, or the subscription has ended. No call changes.

1.0.2

The docblocks of LimitPeriod, ServerLimit, InboundCap and RefusedBatchItem say what an account’s month is. An account that pays by card counts a month from the day and time of its first payment, and any other account the calendar month in UTC. No call changes.

1.0.1

The README says that a webhook event’s constructor is outside the semver promise, as an answer’s is, since a new property adds a parameter. Build either with named arguments in your tests. No call changes.

1.0.0

The first stable release. From 1.0.0 on, only a new major version can break your code: a renamed or removed method, argument or property, or a changed error code. A minor version adds methods, arguments, properties, codes or events, and a patch fixes a bug.

Upgrade from 0.x

  1. Install the new version with composer require sendora/sendora-php:^1.0.
  2. If you wrote for a version before 0.11.0, remove each comparison with ErrorCode::UnpaidLimitReached and each read of unpaidOre, limitOre or priceOre. PHPStan reports every one.

Laravel package

The package is sendora/sendora-laravel on Packagist, and it installs the PHP SDK.

2.0.0

Each mail of a queued job goes under an idempotency key made from the job’s id and the mail’s place in the job. So when Laravel’s queue retries the job, a mail that went out on an earlier attempt is not sent again, and MessageSent carries the first message’s id again. A mail that comes out different on the retry, as a signed URL’s new expiry makes it, goes as a new message, as before. The setting job_idempotency set to false turns this off. This changes a default, so it comes in a new major version. No call changes.

Upgrade from 1.x

  1. Install the new version with composer require sendora/sendora-laravel:^2.0.
  2. If a job of yours sends the same mail again on purpose on a later attempt, or a listener of MessageSent cannot take the same message id twice, set job_idempotency to false in config/sendora.php.

1.5.1

The package installs in a Laravel 13 app that has Guzzle 8, since it now takes guzzlehttp/psr7 3 as well as 2. Before, composer require sendora/sendora-laravel failed there unless -W took Guzzle back to 7. No code changes.

1.5.0

Guidelines and a skill for Laravel Boost, so that a coding agent follows the package’s rules. Run php artisan boost:install, and choose sendora/sendora-laravel among the third-party packages. No code changes.

1.4.0

A Laravel event, RecipientOptedOut, for the tracking_opted_out webhook: a recipient asked not to be tracked. The package requires sendora/sendora-php 1.5.0 or a later 1.x release. No call changes.

1.3.0

The container holds TrackingOptOuts, and the facade has trackingOptOuts(), for a server’s not-tracked list. The package requires sendora/sendora-php 1.4.0 or a later 1.x release. No call changes.

1.2.0

Two Laravel events, MessageOpened and LinkClicked, for the opened and clicked webhooks. The package requires sendora/sendora-php 1.3.0 or a later 1.x release.

1.1.0

The container holds TrackingDomains, the account client’s resource for tracking domains. The package requires sendora/sendora-php 1.1.0 or a later 1.x release.

1.0.0

The first stable release. From 1.0.0 on, only a new major version can break your code: a renamed or removed class, method, setting or event, or a changed default. It takes any 1.x release of the PHP SDK.

To upgrade from 0.x, run composer require sendora/sendora-laravel:^1.0, which takes the PHP SDK to 1.x as well. Nothing of this package changes for your code, and the PHP SDK’s upgrade above says what changes in its own calls.

Java SDK

The package is se.sendora:sendora-java in Sendora’s Maven repository, https://maven.sendora.se.

1.1.0

There is a new error code, daily_cap_reached, the constant ErrorCode.DAILY_CAP_REACHED. An account can have a daily cap, and the code means that its live servers have sent all of the day’s emails. It is a RateLimitException with scope(), cap(), used() and resetsAt(), and is not retried. A ServerLimit’s period() can be LimitPeriod.DAY, the calendar day in UTC. payment_required also means that the account’s plan does not include broadcasts, and inboundCap() is also empty for an account whose plan includes no received mail. No call changes.

1.0.0

The first stable release. From 1.0.0 on, only a new major version can break your code: a renamed or removed class, method or accessor, a changed error code, or a newer floor than Java 21. A minor version adds methods, accessors, builder methods, overloads, enum constants or event classes, and a patch fixes a bug. Since a minor version can add an enum constant or an event class, give every switch over one a default.

To upgrade from 0.x, set the version to 1.0.0 where your build names the SDK. No 0.x release changed or removed a call, so your code compiles against 1.0.0 as it is.