API versioning
How dated MailerSend API versions work: choosing a version, which changes get a new version, deprecation and sunset.
The MailerSend API is versioned by month. You choose a version in the URL, and the shape of its requests and responses stays the same until you move to a newer one. What changed in each version is listed in the API changelog.
Choosing a version
Put the version, in YYYY-MM format, at the start of the path:
GET https://api.mailersend.com/2026-10/domainsA month without a version of its own is served by the newest version released on or before it. For example, /2026-12/ is served by version 2026-10 until a newer version is released. A month before the first version is served by the oldest version.
Requests to /v1/... keep working and are served by version 2026-10.
Every response says which version served it:
X-MailerSend-Api-Version-Resolved: 2026-10What gets a new version
A new version is released only for changes that could break an existing integration:
- A response field is removed or renamed.
- A field changes type, for example from a number to a string.
- A request field becomes required.
- Validation gets stricter.
- A status code or the error format changes.
- An endpoint is removed.
Other changes reach every version at once, without a new version:
- New endpoints.
- New optional request fields.
- New response fields and headers.
Your integration should ignore response fields it doesn't know.
Deprecation and sunset
A version is supported for at least 12 months after its release. When a sunset date is set for a version, it's listed in the API changelog.
For the 90 days before the sunset date, responses from that version include these headers:
| Header | Example | Details |
|---|---|---|
Deprecation | @1819843200 | When the deprecation started, as a Unix timestamp. |
Sunset | Wed, 01 Dec 2027 00:00:00 GMT | When the version is retired. |
Link | <https://developers.mailersend.com/api/changelog>; rel="sunset" | Where to read what changes. |
From the sunset date, requests for that version are served by the oldest version that is still supported. Responses can then look different, so check the changelog and move your integration to a newer version before the date.