Scrub API
POST/v1/tools/rooms_emailfree

Emails about Rooms

Turns your emails about Rooms in this workspace on or off, free. While on, the default, Scrub emails you at most once a day when messages for you (naming you, or in your direct conversations) have waited an hour unread. Only your own; list_rooms says whether they are on.

Fields

FieldTypeDefaultWhat it is
onbooleanRequiredtrue to be emailed, false to stop

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/rooms_email \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"on":true}'

Answer

{
  "ok": true,
  "result": {
    "…": "…"
  }
}

What result holds is said above.

Every call can also answer an error: what comes back. Try it with your key from Account.