Skip to content

Add a notice or reply address to a site's SMTP

POST /v1/sites/{siteId}/smtp/addresses

Adds an address to the site's Rabbitflare SMTP: a notice address admin notices may go to, or the reply address the site's emails carry. A confirmation email is sent to it, and it's used once its owner confirms it from the link.

The answer is 201 with the view, the new address in addresses; its Location is the address (GET /sites/{siteId}/smtp/addresses/{addressId}). An address the site has already that's still waiting for its owner gets its confirmation email again, with a new link, and nothing is added: the answer is 200. One confirmed already (the account's own addresses are): nothing is sent and the answer is 200.

Idempotency-Key required. Each confirmation email has a new link (the one before stops working) and counts in the account's 3 a day, so a request sent again must not send another: each needs an Idempotency-Key (400 idempotency_key_required without one), and the same request sent again with the same key gets the first answer.

Limits. Rabbitflare SMTP must have been turned on for the site (409 not_on). Up to 5 added notice addresses (409 too_many_addresses) and one reply address (409 reply_exists) per site. An account sends up to 3 confirmation emails in 24 hours (429 rate_limited: Retry-After says when the oldest of them is a day old).

Scopes. It needs sites:read as well as sites:write (403 insufficient_scope without it): whether an address is new (201) or one the site has already (200), the account's own sign-in addresses included, is what sites:read shows. The answer is the site's whole view, and every call is written to the token's request log.

Scopes

The token needs these scopes. Without them, the request is refused with insufficient_scope (see Scopes).

sites:write
Manage sites. Domains, SSL, CDN, cache, firewall, malware protection, resources, backups, staging, Media Offload, SMTP and RabbitPress Cache. Choosing Rabbitflare Backup for a site's backups, and turning on Media Offload or a site's malware protection, also need Turn on paid features: they start monthly charges.
sites:read
View sites. See sites and their domains, CDN, firewall, malware protection, backups, staging, resources, SMTP and Media Offload. SMTP includes who each site's recent emails went to, their subjects, and the team's sign-in addresses.

Headers

FieldType and description
Idempotency-Key Required

string 1 to 255 characters

A key of your own for this request, like a UUID: letters, digits and _ - : . Send the request again with the same key (after a timeout, say) and it's done only once. Keys are kept for 24 hours (see Idempotency).

Path parameters

FieldType and description
siteId Required

string

The site's id.

Request body

JSON, with these fields. Fields that aren't listed are refused.

FieldType and description
kind Required

string

notice: admin notices may go to it. reply: the reply address of the site's emails.

One of: noticereply

address Required

string Up to 254 characters

The email address: one of yours, not a Rabbitflare address.

Example request

# Keep this key when you send the same request again (after a timeout, say), so it's only done once.
KEY=$(uuidgen)
curl -X POST "https://api.rabbitflare.com/v1/sites/8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d/smtp/addresses" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $KEY" \
  -d '{
  "kind": "notice",
  "address": "[email protected]"
}'

Response

201 Created Returns the SiteSmtp object in data. It can also answer 200 OK.

The SiteSmtp object's fields 80 fields
FieldType and description
status

string

off, setting_up (being set up on the site's server), on, turning_off, failed (see lastError), or stopped: checking (the plugin file is being checked), paused (see hold), suspended, or account_off (the account's email is off for good: see accountOff).

Known values: offsetting_uponturning_offfailedcheckingpausedsuspendedaccount_off More can appear.

enabled

boolean

Whether it's turned on for the site, whatever stop hold puts on it.

blockedReason

string or null

Why the site can't have Rabbitflare SMTP right now: a staging copy, a site still installing, or a server that's stopped or suspended. Null when it can.

eligible

object

Whether the account may use it for this site: a paid, running server (not a free trial) and a confirmed account email address.

ok

boolean

Whether the account may turn it on for this site.

code

string or null

Why not, as a code (not_eligible, account_off, …). Null when it may.

Known values: offnot_enablednot_eligiblepausedcheckingsuspendedaccount_offnot_checkedtype_not_coveredbad_messagerecipient_refusedrecipient_suppressednotice_unconfirmedlimit_site_10minlimit_site_daylimit_new_sitelimit_account_daylimit_recipient_hourlimit_recipient_daylimit_recipient_alllimit_new_recipientslimit_noticeslimit_platformno_credittemporaryforms_offforms_pausedforms_stoppedform_unconfirmedform_spamform_uncheckedform_too_longlimit_form_visitorlimit_form_10minlimit_form_daylimit_form_new_sitelimit_form_accountlimit_form_platform More can appear.

message

string or null

Why not, in a sentence. Null when it may.

lastError

string or null

Why setting it up on the site's server, or removing it, didn't finish (with status: "failed"). Null otherwise.

hold

object or null

A stop on the site's emails: an automatic safety check, or Rabbitflare's team. Null when there's none.

kind

string

checking (the plugin file is being checked), paused or suspended.

Known values: checkingpausedsuspended More can appear.

reason

string

Why, in a sentence.

note

string

What to do about it, in a sentence.

heldAt

string or null An ISO 8601 time, in UTC

When it was stopped.

canResumeAt

string or null An ISO 8601 time, in UTC

A first pause: when it may be turned on again (POST …/smtp/actions/resume). Null otherwise.

canResume

boolean

Whether it may be turned on again now.

accountOff

object or null

Set when the account's email is switched off for good (only support can lift it). Null otherwise.

reason

string

Why, in a sentence.

offAt

string or null An ISO 8601 time, in UTC

When it was switched off.

wpMailReplaced

boolean

Another plugin has replaced WordPress's wp_mail(), so the site's emails don't go through Rabbitflare SMTP.

pluginCheck

object

The site's server checks the plugin file every few minutes: nothing is sent while it's changed or unchecked.

ok

boolean

Whether the Rabbitflare SMTP plugin file on the site is the one Rabbitflare put there.

checkedAt

string or null An ISO 8601 time, in UTC

When the site's server last checked it. Null before the first check.

firstOnAt

string or null An ISO 8601 time, in UTC

When it was first turned on for the site. Null if never.

newSiteEndsAt

string or null An ISO 8601 time, in UTC

While the site is new to Rabbitflare SMTP (its first 14 days, with lower daily limits): when that ends. Null otherwise.

from

string

The sender the recipients see: the site's domain as the name, and the site's own sending address.

replyTo

string or null

The confirmed reply address the site's emails carry. Null when it has none.

limits

object

The limits in force. Times are rolling: 24 hours, not a calendar day.

perSite10Min

integer

Emails the site may send in 10 minutes.

perSiteDay

integer

Emails the site may send in 24 hours.

perAccountDay

integer

Emails all the account's sites may send in 24 hours.

newRecipientsPerDay

integer

Addresses the site has never emailed before that it may email in 24 hours.

newSitePerDay

integer

Emails a site may send in 24 hours while it's new to Rabbitflare SMTP (its first 14 days).

newRecipientsPerDayFirst14

integer

New addresses a site may email in 24 hours in its first 14 days.

perRecipientHour

integer

Emails one address may be sent from the site in an hour.

perRecipientDay

integer

Emails one address may be sent from the site in 24 hours.

noticePerSiteDay

integer

Admin notices to confirmed addresses in 24 hours (their own allowance).

noticeAddressesPerSite

integer

Notice addresses a site may add.

usage

object or null

What the site sent, against its limits. Null if it was never turned on, and in a change's answer to a token without sites:read.

tenMinutes

object

The site's emails in the last 10 minutes.

Show its 2 fields
FieldType and description
used

integer

Emails counted so far.

limit

integer

The most allowed.

today

object

The site's emails in the last 24 hours.

Show its 2 fields
FieldType and description
used

integer

Emails counted so far.

limit

integer

The most allowed.

account

object or null

All the account's sites' emails in the last 24 hours. Null for a token limited to some servers: it counts the sites on every server.

Show its 2 fields
FieldType and description
used

integer

Emails counted so far.

limit

integer

The most allowed.

newRecipients

object

New addresses the site emailed in the last 24 hours.

Show its 2 fields
FieldType and description
used

integer

Emails counted so far.

limit

integer

The most allowed.

notices

object

Admin notices to confirmed addresses in the last 24 hours.

Show its 2 fields
FieldType and description
used

integer

Emails counted so far.

limit

integer

The most allowed.

refusedToday

integer

Emails refused in the last 24 hours.

paidToday

integer

Emails paid from the account's email credit in the last 24 hours.

days

array of objects

The last 30 days, oldest first.

Show its 6 fields
FieldType and description
date

string

The day (UTC), like 2026-11-19.

sent

integer

Emails sent.

delivered

integer

Emails delivered.

bounced

integer

Emails that bounced.

complained

integer

Emails marked as spam.

refused

integer

Emails refused before sending.

addresses

array of objects

The account's own addresses first, then the ones added to the site. A token limited to some servers sees only the team members who can reach the site's server; a change's answer to a token without sites:read holds only the ones added to the site (no sign-in addresses).

id

string

The address's id. The account's own addresses have ids starting account: or team:: they can't be removed or sent a confirmation.

kind

string

notice: admin notices may go to it. reply: the reply address of the site's emails (a site has at most one).

Known values: noticereply More can appear.

address

string

The email address.

confirmed

boolean

Whether its owner confirmed it from the link in the confirmation email. Only confirmed addresses are used.

confirmationSentAt

string or null An ISO 8601 time, in UTC

When the last confirmation email was sent to it. Null for the account's own addresses.

source

string

added: added to this site (it can be removed). account and team: the account owner's and team members' own sign-in addresses, always confirmed for admin notices.

Known values: addedaccountteam More can appear.

suggestedNoticeAddresses

array of strings

Addresses the site tried to send admin notices to in the last 30 days that aren't confirmed: add them to let notices through. Empty in a change's answer to a token without sites:read.

recentEmails

array of objects

The site's latest emails, newest first. Empty in a change's answer to a token without sites:read: whom they went to and their subjects are people's details.

id

string

The email's id.

sentAt

string An ISO 8601 time, in UTC

When the site sent it.

type

string or null

What kind of email it is: password_reset (Password resets), new_account (New accounts), account_change (Account changes), admin_notice (Admin notices), order (Order emails), contact_form (Contact forms). Null when it couldn't be read.

Known values: password_resetnew_accountaccount_changeadmin_noticeordercontact_form More can appear.

to

string or null

Who it was for (kept 30 days). Null when it was refused before it could be read.

subject

string or null

Its subject. Null when it was refused before it could be read.

status

string

What happened to it: accepted, sent, delivered, bounced, complained (marked as spam), refused, failed or unknown.

Known values: acceptedsentfailedunknownrefuseddeliveredbouncedcomplained More can appear.

code

string or null

Why it wasn't sent, as a code (limit_site_day, no_credit, …). Null when it was.

Known values: offnot_enablednot_eligiblepausedcheckingsuspendedaccount_offnot_checkedtype_not_coveredbad_messagerecipient_refusedrecipient_suppressednotice_unconfirmedlimit_site_10minlimit_site_daylimit_new_sitelimit_account_daylimit_recipient_hourlimit_recipient_daylimit_recipient_alllimit_new_recipientslimit_noticeslimit_platformno_credittemporaryforms_offforms_pausedforms_stoppedform_unconfirmedform_spamform_uncheckedform_too_longlimit_form_visitorlimit_form_10minlimit_form_daylimit_form_new_sitelimit_form_accountlimit_form_platform More can appear.

reason

string or null

Why it wasn't sent, in a sentence. Null when it was.

paid

boolean

Paid from the account's email credit: it was beyond the site's included emails.

Example response

201 Created
{
  "data": {
    "status": "on",
    "enabled": true,
    "blockedReason": null,
    "eligible": {
      "ok": true,
      "code": null,
      "message": null
    },
    "lastError": null,
    "hold": null,
    "accountOff": null,
    "wpMailReplaced": false,
    "pluginCheck": {
      "ok": true,
      "checkedAt": "2026-11-19T10:01:00.000Z"
    },
    "firstOnAt": "2026-10-28T14:20:11.000Z",
    "newSiteEndsAt": null,
    "from": "\"shop.example.com\" <[email protected]>",
    "replyTo": "[email protected]",
    "limits": {
      "perSite10Min": 5,
      "perSiteDay": 50,
      "perAccountDay": 150,
      "newRecipientsPerDay": 15,
      "newSitePerDay": 10,
      "newRecipientsPerDayFirst14": 5,
      "perRecipientHour": 3,
      "perRecipientDay": 10,
      "noticePerSiteDay": 10,
      "noticeAddressesPerSite": 5
    },
    "usage": {
      "tenMinutes": {
        "used": 1,
        "limit": 5
      },
      "today": {
        "used": 12,
        "limit": 50
      },
      "account": {
        "used": 19,
        "limit": 150
      },
      "newRecipients": {
        "used": 4,
        "limit": 15
      },
      "notices": {
        "used": 2,
        "limit": 10
      },
      "refusedToday": 0,
      "paidToday": 0,
      "days": [
        {
          "date": "2026-11-18",
          "sent": 14,
          "delivered": 14,
          "bounced": 0,
          "complained": 0,
          "refused": 0
        },
        {
          "date": "2026-11-19",
          "sent": 12,
          "delivered": 11,
          "bounced": 0,
          "complained": 0,
          "refused": 0
        }
      ]
    },
    "addresses": [
      {
        "id": "account:0b9f2c1e-6d3a-4f7e-9a51-2c8e4b7d1f60",
        "kind": "notice",
        "address": "[email protected]",
        "confirmed": true,
        "confirmationSentAt": null,
        "source": "account"
      },
      {
        "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
        "kind": "reply",
        "address": "[email protected]",
        "confirmed": true,
        "confirmationSentAt": "2026-10-28T14:25:40.000Z",
        "source": "added"
      },
      {
        "id": "7b8c9d0e-1f2a-4b3c-8d4e-5f6a7b8c9d0e",
        "kind": "notice",
        "address": "[email protected]",
        "confirmed": false,
        "confirmationSentAt": "2026-11-19T10:14:22.000Z",
        "source": "added"
      }
    ],
    "suggestedNoticeAddresses": [],
    "recentEmails": [
      {
        "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
        "sentAt": "2026-11-19T09:58:03.000Z",
        "type": "order",
        "to": "[email protected]",
        "subject": "Your Shop order has been received!",
        "status": "delivered",
        "code": null,
        "reason": null,
        "paid": false
      }
    ]
  }
}

Errors

The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).

Status and codeWhen, and what to do
400 idempotency_key_required

This operation needs an Idempotency-Key header: it spends money, or doing it twice isn't the same as doing it once.

Send a unique Idempotency-Key (a UUID) with the request.

403 feature_unavailable

This product isn't open to the account.

Contact support if you'd like it opened.

404 not_found

The resource doesn't exist, or isn't this account's.

Check the id. Ids of other accounts' resources answer the same way.

409 not_on

Media Offload or Rabbitflare SMTP isn't on for the site, and this needs it.

Turn it on first (POST /v1/sites/{siteId}/media-offload/actions/enable or POST /v1/sites/{siteId}/smtp/actions/enable).

409 too_many_addresses

The site has as many notice addresses as it can have.

Remove one first.

409 reply_exists

The site has a reply address already.

Remove it first to use another.

409 server_restoring

The server is being restored, and nothing else can change it or its sites until that's done.

Wait until the restore finishes (the server's pendingAction is null again), then try again. A restore that stopped partway keeps pendingAction: "restore", with the server's lastError set, until our team has checked the server.

422 validation_failed

One or more fields are missing or wrong. fields names each one with what's wrong.

Correct the fields named in fields. Unknown fields are refused too.

429 rate_limited

Too many requests. scope says which limit: token, account, create, operation or network.

Wait for Retry-After seconds, then go on more slowly.

502 email_failed

The email couldn't be sent just now.

Try again in a few minutes.

Rate limit

Write requests: 30 a minute per token, 60 per account. More in Rate limits.

Added on .

Popular

API docs