Skip to content
Rigel docs
Open Rigel

Remove a custom domain

email.domains_delete

DELETE/api/v1/households/{household_id}/email/domains/{email_domain_id}

  • Route

Removes the domain and its addresses, gives them up, and deletes the domain from the mail service. Fails with address_in_use while a draft is being sent from one of its addresses.

Parameters#

Remove a custom domain: parameters
FieldDescription
household_idpathstringrequired

The household's ID.

email_domain_idpathstringrequired

The domain's ID.

pattern ^emd_[0-9A-HJKMNP-TV-Z]{26}$

Response#

204 The domain was removed. No body.

Errors#

Every error has the same envelope: error.code, error.message, error.details, error.recovery and error.request_id.

Remove a custom domain: errors
StatusCodeWhen
400validation_failedA field is missing, misspelled or out of range. details.fields lists each problem.
401unauthenticatedThe request has no valid session.
404not_foundThe household doesn't exist, or you aren't a member of it.
409Read error.codeDescribed above.

Examples#

These are real. Each was recorded from a sample household, the Okafors, running through the whole API when this site was built.

Remove a custom domain

Removes the domain and its addresses, gives them up, and deletes the domain from the mail service.

Request, curl
curl -X DELETE 'https://rigel.house/api/v1/households/hh_01M6V9CS6GGVFCY7NAS8ZTQV95/email/domains/emd_01M6V9CSSD5VZEVZHZH5TE669F' \
  -H "Cookie: rigel_session=$RIGEL_SESSION"
Request, TypeScript
const response = await fetch("https://rigel.house/api/v1/households/hh_01M6V9CS6GGVFCY7NAS8ZTQV95/email/domains/emd_01M6V9CSSD5VZEVZHZH5TE669F", {
  method: "DELETE",
  headers: {
    Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
  },
});
const data = await response.json();
Request, HTTP
DELETE /api/v1/households/hh_01M6V9CS6GGVFCY7NAS8ZTQV95/email/domains/emd_01M6V9CSSD5VZEVZHZH5TE669F HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Response, 204
HTTP/1.1 204 No Content
X-Request-Id: req_01M6V9CSSFGVN8NV23AZDEW31B

Rigel is in early access, and sign-up is by invitation. Open Rigel