Pick a domain or a subdomain for your agents
The domain's MX record hands every address of it to Blueping. So connect a domain or a subdomain your agents alone use, such as agents.acme.com: the mail your team reads on acme.com stays where it is, and so does your website.
Connecting acme.com itself works too, when nobody reads mail on it: its mail then reaches your agents' inboxes, and nothing else.
Connect the domain
POST /v1/domains with the domain's name. The agent must be claimed: a person stands behind the mail sent from the domain.
curl -X POST https://blueping.dev/v1/domains \
-H "Authorization: Bearer $BLUEPING_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "agents.acme.com"}'# blueping() is the few-line client of /docs/sdks.
domain = blueping("POST", "/domains", {"name": "agents.acme.com"})
for record in domain["dns"]["records"]:
print(record["type"], record["name"], record["value"])// blueping() is the few-line client of /docs/sdks.
const domain = await blueping("POST", "/domains", { name: "agents.acme.com" });
for (const record of domain.dns.records) console.log(record.type, record.name, record.value);# Over MCP, the agent calls the tool itself.
add_domain {"name": "agents.acme.com"}The answer is the domain, with the records to add in dns.records, the required ones first, and the steps in plain words (shortened here to one record of each kind):
{
"id": "dom_7Hq2Lw9Xc4Vn1Kt6Rb3M",
"name": "agents.acme.com",
"status": "pending_dns",
"receiving": false,
"sending": false,
"inboxes": 0,
"dns": {
"records": [
{
"type": "CNAME",
"name": "c7z4kq2hd6mxv3p5yb8nt2wfgl6sj4ra._domainkey.agents.acme.com",
"value": "c7z4kq2hd6mxv3p5yb8nt2wfgl6sj4ra.dkim.amazonses.com",
"priority": null,
"purpose": "DKIM: signs the mail your agents send",
"required": true,
"found": null
},
{
"type": "MX",
"name": "agents.acme.com",
"value": "inbound-smtp.eu-north-1.amazonaws.com",
"priority": 10,
"purpose": "Receiving: mail to every address of the domain reaches its inboxes",
"required": true,
"found": null
},
{
"type": "MX",
"name": "bounce-k7x2qm.agents.acme.com",
"value": "feedback-smtp.eu-north-1.amazonses.com",
"priority": 10,
"purpose": "Bounces come back to the domain's own address, for better delivery",
"required": false,
"found": null
}
],
"checked_at": null,
"dkim": "pending",
"mail_from": {
"domain": "bounce-k7x2qm.agents.acme.com",
"status": "pending"
}
},
"expires_at": "2026-12-01T10:00:00.000Z",
"next_steps": [
"Add the 4 required records below where the DNS of agents.acme.com is managed: at its registrar, or at a DNS host such as Cloudflare. The rest of its DNS stays as it is.",
"The 3 recommended records improve delivery: add them too when you can."
]
}Sending the same domain again answers the same domain, so a retried call makes nothing twice.
Add the records
Four records are required: they make the domain work. Three more are recommended: they improve delivery, and the domain works without them.
| Type | Name | Value | What it does | |
|---|---|---|---|---|
| Required | CNAME (3) | <token>._domainkey.<domain> | <token>.dkim.amazonses.com | DKIM: the domain signs its agents' mail |
| Required | MX, priority 10 | <domain> | inbound-smtp.eu-north-1.amazonaws.com | Receiving: mail to the domain reaches its inboxes |
| Recommended | MX, priority 10 | bounce-xxxxxx.<domain> | feedback-smtp.eu-north-1.amazonses.com | Bounces come back to the domain's own address |
| Recommended | TXT | bounce-xxxxxx.<domain> | v=spf1 include:amazonses.com ~all | SPF for that bounce address |
| Recommended | TXT | _dmarc.<domain> | v=DMARC1; p=none; | DMARC, when the domain has none yet |
Open the DNS of the domain where it is managed: at its registrar, or at a DNS host such as Cloudflare or Route 53.
Add each record of
dns.recordswith its type, host and value, and the MX records' priority.hostis the name relative todns.zone, as most DNS providers ask for it (@for the zone itself);nameis the full name.dns.providernames your DNS provider when Blueping can tell, with a link to its dashboard.Leave the CNAME records unproxied (the grey cloud, in Cloudflare): a proxy hides them.
If the domain has other MX records, remove them: the MX of Blueping must be the only one.
Without the recommended records, mail still goes out signed with the domain's DKIM and passes DMARC; with them, bounces come back to the domain's own address and SPF passes too. A domain connected to Blueping before can need its bounce MX as well, as the proof it is yours: required says so for each record. Blueping looks by itself, every minute at first, then less often; most DNS hosts show a change within minutes, some within a few hours. Add the required records before expires_at, 3 days after connecting: Blueping then removes a domain whose records it hasn't found, and it needs connecting again, with new records.
What happens next, by itself
| status | What it means |
|---|---|
pending_dns | Blueping waits for the required records. Each one in dns.records says whether a public resolver found it, in found. |
sending | The required records are there: mail to the domain reaches its inboxes, and they send. |
receiving | Mail arrives, but sending stopped for the domain, its DKIM or bounce records no longer verified. Its inboxes write to Blueping inboxes meanwhile. |
failed | The records weren't found in time, or went missing from the domain's DNS. failure says why and what to do, in plain words. |
Blueping looks at a domain that works once a day. A domain whose MX or DKIM records go missing fails after a few looks an hour apart, saying which, and comes back by itself once they are back. Past 7 days without them, it is removed, and connecting it again answers new records.
Create inboxes on it
Once the domain receives, POST /v1/inboxes takes domain, or the whole address:
curl -X POST https://blueping.dev/v1/inboxes \
-H "Authorization: Bearer $BLUEPING_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username": "support", "domain": "agents.acme.com", "display_name": "Acme Support"}'inbox = blueping("POST", "/inboxes", {"username": "support", "domain": "agents.acme.com"})
print(inbox["address"]) # support@agents.acme.comconst inbox = await blueping("POST", "/inboxes", { address: "support@agents.acme.com" });
console.log(inbox.address); // support@agents.acme.comcreate_inbox {"username": "support", "domain": "agents.acme.com"}The inbox works like any Blueping inbox: verification codes, threads, webhooks, delivery events, held mail, labels, drafts, rules and A2A, under the same plan limits. Its inboxes count in the plan's inboxes. While the domain doesn't send, a send to anyone outside Blueping answers domain_not_ready; while it doesn't receive, its inboxes send nothing.
Role addresses such as support@ or billing@ are yours to give on your own domain. A name that poses as another company is refused, as on blueping.dev, and so is an address a person signs in to Blueping with.
Mail From the domain itself that DMARC doesn't prove is held, with the reason sender_spoofs_own_domain in safety.reasons: only your own inboxes send as the domain. Mail to an address of the domain that no inbox holds is discarded.
Check a domain
GET /v1/domains/{id} answers where it stands, and GET /v1/domains lists them all, with how many the plan connects. POST /v1/domains/{id}/check looks now: it reads the domain's records through a public resolver, asks Amazon SES where its DKIM and bounce records stand (dns.dkim, dns.mail_from), and takes any step that is ready. Once a minute is enough, since Blueping also looks by itself.
curl -X POST https://blueping.dev/v1/domains/dom_7Hq2Lw9Xc4Vn1Kt6Rb3M/check \
-H "Authorization: Bearer $BLUEPING_API_KEY"check_domain {"domain_id": "dom_7Hq2Lw9Xc4Vn1Kt6Rb3M"}Remove a domain
DELETE /v1/domains/{id} removes the domain and retires its inboxes: their mail goes, and their addresses are never given again, so nobody inherits accounts tied to them. Remove its records from the domain's DNS too, the MX first, so its mail goes where you read it again.
Domains on each plan
| Plan | Custom domains |
|---|---|
| Free | 1 domain |
| Developer | 10 domains |
| Startup | 150 domains |
| Scale | 500 domains |
Past the plan's domains, POST /v1/domains answers domain_limit_reached. An agent connects a few domains at a time: 5 in 10 minutes, twice its plan's domains in a day (3 at least, 50 at most), and 5 waiting for their records at once; past that, rate_limited says when to send again. Mail sent from a custom domain counts in the plan's sends, like any other.
Errors
invalid_domain(HTTP 400): The name isn't one Blueping can connect: it can't be read, it is an extension rather than a domain, it is Blueping's own, or the agent's owner reads mail on it.domain_not_found(HTTP 404): No domain with this id, or of this name, is connected to this agent.domain_taken(HTTP 409): This domain is connected to Blueping by another agent, or is still being removed.domain_not_ready(HTTP 409): The domain doesn't receive mail now, or an inbox on it can't send outside Blueping right now: GET /v1/domains/{id} says which record to check.domain_deleted(HTTP 410): The domain was deleted: its identity is removed from Amazon SES, or will be within the hour, and the addresses of its inboxes are retired.domain_refused(HTTP 422): Amazon SES doesn't take this domain right now.domain_limit_reached(HTTP 429): The plan's domains are all in use: Free connects 1, Developer 10, Startup 150 and Scale 500.domains_unavailable(HTTP 503): Custom domains can't be reached on this deployment right now. Nothing was changed.