JavaScript SDK: swarmhit.managedDomains.delete(managedDomainId)
Let go of a domain you own once no mailbox runs or is on its way there (cancel them first; 409 domain-in-use otherwise). Its DNS at Swarmhit is deleted, so the domain stops resolving until its nameservers are set back at the registrar. Billing rights. Not gated on the features. 409 not-own-domain for a domain bought here.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/managed-domains/string"{ "data": { "ok": true }}Price an order POST
**JavaScript SDK:** [`swarmhit.mailboxOrders.quote(params)`](/smart-api/sdk/methods#mailboxOrders) Price domains and mailboxes before buying: the lines charged now (domain registration, the first month) and every month after, in cents. Returns a `quoteId`, valid for 30 minutes, that POST /mailbox-orders needs. Charges nothing. Domains no longer available are listed in `unavailable`. Needs the managed mailboxes feature (`403`). A domain entry with `existing: true` adds mailboxes to a domain the workspace already bought (GET /managed-domains): no domain charge, only the mailboxes, which are usually ready within minutes. Addresses already taken on such a domain are listed in `unavailableMailboxes`. Refusals: `404` `domain-not-owned`, `409` `domain-full` (`details.slotsLeft`), `409` `domain-admin-cancelled` (its admin mailbox was cancelled, so it takes no new mailbox), `409` `domain-not-ready` (an own domain still connecting, or whose nameservers moved away). `contact` is only required when the order registers a new domain.
Search domains to buy GET
**JavaScript SDK:** [`swarmhit.domains.search(params)`](/smart-api/sdk/methods#domains) Domains matching a keyword (or one exact domain), with availability, whether Google Workspace and Microsoft 365 can host each, and the first-year price. Needs the managed mailboxes feature on the workspace (`403`, `code: feature-disabled`).