Get an address of a site's SMTP
/v1/sites/{siteId}/smtp/addresses/{addressId} Returns one of the site's notice and reply addresses, as in addresses of the view: whether its owner confirmed it, and when its confirmation email was last sent. It's where POST /sites/{siteId}/smtp/addresses points (Location). An address that isn't the site's answers 404. It holds a person's address, so every call is written to the token's request log.
Scopes
The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).
-
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.
Path parameters
| Field | Type and description |
|---|---|
siteId Required | string The site's id. |
addressId Required | string The address's id ( |
Example request
curl "https://api.rabbitflare.com/v1/sites/8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d/smtp/addresses/7b8c9d0e-1f2a-4b3c-8d4e-5f6a7b8c9d0e" \
-H "Authorization: Bearer $RABBITFLARE_TOKEN" const res = await fetch("https://api.rabbitflare.com/v1/sites/8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d/smtp/addresses/7b8c9d0e-1f2a-4b3c-8d4e-5f6a7b8c9d0e", {
headers: {
Authorization: `Bearer ${process.env.RABBITFLARE_TOKEN}`,
},
});
if (!res.ok) throw new Error(`Rabbitflare API error ${res.status}: ${await res.text()}`);
const { data } = await res.json();
console.log(data); import { Rabbitflare } from "@rabbitflare/api";
const rf = new Rabbitflare({ token: process.env.RABBITFLARE_TOKEN });
const data = await rf.sites.smtp.addresses.get({
siteId: "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
addressId: "7b8c9d0e-1f2a-4b3c-8d4e-5f6a7b8c9d0e",
});
console.log(data); <?php
$ch = curl_init('https://api.rabbitflare.com/v1/sites/8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d/smtp/addresses/7b8c9d0e-1f2a-4b3c-8d4e-5f6a7b8c9d0e');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RABBITFLARE_TOKEN'),
],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($body === false || $status >= 400) {
throw new RuntimeException("Rabbitflare API error $status: $body");
}
print_r(json_decode($body, true)['data']); import os
import requests
response = requests.get(
"https://api.rabbitflare.com/v1/sites/8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d/smtp/addresses/7b8c9d0e-1f2a-4b3c-8d4e-5f6a7b8c9d0e",
headers={
"Authorization": "Bearer " + os.environ["RABBITFLARE_TOKEN"],
},
timeout=120,
)
response.raise_for_status()
print(response.json()["data"]) Response
200 OK Returns the SmtpAddress object in data.
The SmtpAddress object's fields 6 fields
| Field | Type and description |
|---|---|
id | string The address's id. The account's own addresses have ids starting |
kind | string
Known values: |
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
Known values: |
Example response
{
"data": {
"id": "7b8c9d0e-1f2a-4b3c-8d4e-5f6a7b8c9d0e",
"kind": "notice",
"address": "[email protected]",
"confirmed": false,
"confirmationSentAt": "2026-11-19T10:14:22.000Z",
"source": "added"
}
} 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 code | When, and what to do |
|---|---|
403 feature_ | This product isn't open to the account. Contact support if you'd like it opened. |
404 not_ | The resource doesn't exist, or isn't this account's. Check the id. Ids of other accounts' resources answer the same way. |
429 rate_ | Too many requests. Wait for Retry-After seconds, then go on more slowly. |