With Mailsac, it’s super easy to interact with email via REST API, webhooks and websockets. You can reserve and release email addresses, check messages, download attachments, and route mail.


All API endpoints can be found in the API Documentation

Curl Example

You can use curl to view emails sent to

$ curl -s -X GET | jq ".[0]"

Information about the most recent email is returned as JSON

  "_id": "BotvTxaona7gLID1Adtpfj8Fnfi7HSSv-0",
  "from": [
      "address": "",
      "name": "Microsoft Store"
  "to": [
      "address": "",
      "name": ""
  "cc": null,
  "bcc": null,
  "subject": "Ahoy, Sea of Thieves for PC is here",
  "savedBy": null,
  "originalInbox": "",
  "inbox": "",
  "domain": "",
  "received": "2018-03-29T18:28:07.732Z",
  "size": 23420,
  "attachments": null,
  "ip": "",
  "via": "",
  "folder": "inbox",
  "labels": [],
  "read": null,
  "rtls": true,
  "links": [
  "spam": 1.3370381090039505e-09


This may look for more information than you need. But it provides a great example of all the hard work mailsac has done to make parsing of email easier.