JavaScript SDK: swarmhit.domains.search(params)
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).
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Query Parameters
A word (acme) or an exact domain (getacme.com).
Comma-separated endings to search, e.g. .com,.org. Endings we do not sell (.co) are left out of the results.
1 <= value <= 101Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/domains/search?keyword=string"{ "data": [ { "name": "string", "available": true, "premium": true, "priceCents": 0, "renewalCents": 0, "offered": true, "platforms": { "google": true, "microsoft": true } } ]}Remove an own domain DELETE
**JavaScript SDK:** [`swarmhit.managedDomains.delete(managedDomainId)`](/smart-api/sdk/methods#managedDomains) 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.
Set a bought mailbox's picture POST
**JavaScript SDK:** [`swarmhit.emailAccounts.setPicture(emailAccountId, params)`](/smart-api/sdk/methods#emailAccounts) Set the profile picture of a mailbox bought through Swarmhit (`connectedVia: managed`), from a public `https://` link to a JPG or PNG that our supplier downloads. Gmail shows it next to the mailbox's emails, which can take up to a day. Returns the mailbox with its new `picture`. Not gated on the managed mailboxes feature. `409` with `code: not-managed` for a mailbox the workspace connected itself: its picture is its own account's.