Skip to content
Rigel docs
Open Rigel

Rigel's email addresses

email.address.list

GET/api/v1/households/{household_id}/queries/email.address.list

  • Query
  • Rigel runs it

The addresses Rigel receives at and sends from, the default first, each with its display name and, for a custom domain, the domain's state in words.

Parameters#

Rigel's email addresses: parameters
FieldDescription
household_idpathstringrequired

The household's ID.

Response#

200 The answer.

Rigel's email addresses: response fields
FieldDescription
itemsarray of objectsrequired
items[].idstringrequired

A email address ID, such as eml_01JC0000000000000000000000.

items[].addressstringrequired

The address.

items[].display_namestringrequired

The name on mail sent from it when not sent in a person's name.

items[].is_default_frombooleanrequired

Whether it is the default address mail is sent from.

items[].domainobject or nullrequired

The custom domain it is on, or null for an address on Rigel's own domain.

items[].domain.idstringrequired

A email domain ID, such as emd_01JC0000000000000000000000.

items[].domain.domainstringrequired

The custom domain.

items[].domain.stateone of: pending, receiving, sending, ready, brokenrequired

The custom domain's state: pending (nothing verified), receiving (mail addressed to it has arrived), sending (verified for sending), ready (both work), broken (a record that checked out stopped checking out).

items[].domain.state_in_wordsstringrequired

What the state means, in words.

Errors#

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

Rigel's email addresses: 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.

Examples#

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

List the household's email addresses

Request, curl
curl 'https://rigel.house/api/v1/households/hh_01M6V9CS6GGVFCY7NAS8ZTQV95/queries/email.address.list' \
  -H "Cookie: rigel_session=$RIGEL_SESSION"
Request, TypeScript
const response = await fetch("https://rigel.house/api/v1/households/hh_01M6V9CS6GGVFCY7NAS8ZTQV95/queries/email.address.list", {
  headers: {
    Cookie: `rigel_session=${process.env.RIGEL_SESSION}`,
  },
});
const data = await response.json();
Request, HTTP
GET /api/v1/households/hh_01M6V9CS6GGVFCY7NAS8ZTQV95/queries/email.address.list HTTP/1.1
Host: rigel.house
Cookie: rigel_session=<your session>
Response, 200
HTTP/1.1 200 OK
Content-Type: application/json
X-Request-Id: req_01M6V9CSRVAXDY0T7CCWFMCQ89

{
  "items": [
    {
      "id": "eml_01M6V9CSQB5Y3M8ETS3YPHFPA1",
      "address": "home@okafors.example.com",
      "display_name": "The Okafors",
      "is_default_from": true,
      "domain": {
        "id": "emd_01M6V9CSQ63D47MKP7KG4FEBDJ",
        "domain": "okafors.example.com",
        "state": "ready",
        "state_in_words": "Ready: receiving and sending both work."
      }
    }
  ]
}

For Rigel#

Rigel's tool for this query is email_address_list. Rigel runs this on its own, then says what it did. The agent guide has the rest.

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