Private Email Addresses
Messages sent to a Private Email Address are only visible by the owner of the Private Email Address.
Private Email Addresses have additional features:
Reserve an Enhanced Address
curl -X POST -H "Mailsac-Key: YOUR_API_KEY_HERE" https://mailsac.com/api/addresses/unitedmonkey@mailsac.com
# Output from curl
{
"_id": "unitedmonkey@mailsac.com",
"catchAll": null,
"created": "2020-07-23T14:49:10.129Z",
"enablews": null,
"forward": null,
"info": "",
"owner": "monkeyman",
"password": null,
"updated": "2020-07-23T14:49:10.129Z",
"webhook": null,
"webhookSlack": null,
"webhookSlackToFrom": null
}
const superagent = require('superagent')
superagent
.post('https://mailsac.com/api/addresses/unitedmonkey@mailsac.com')
.set('Mailsac-Key', 'YOUR_API_KEY_HERE')
.then((reservation) => {
console.log(reservation.body)
})
.catch(err => {
console.log(err.message)
})
/*
{
_id: 'unitedmonkey@mailsac.com',
owner: 'monkeyman',
forward: null,
enablews: null,
webhook: null,
webhookSlack: null,
webhookSlackToFrom: null,
catchAll: null,
password: null,
info: '',
created: '2020-07-23T15:00:00.935Z',
updated: '2020-07-23T15:00:00.935Z'
}
*/
import requests
from pprint import pprint
headers = {'Mailsac-Key': 'YOUR_API_KEY_HERE'}
url = 'https://mailsac.com/api/addresses/unitedmonkey@mailsac.com'
r = requests.post(url, headers=headers)
pprint(r.json())
'''
{'_id': 'unitedmonkey@mailsac.com',
'catchAll': None,
'created': '2020-07-23T15:04:15.981Z',
'enablews': None,
'forward': None,
'info': '',
'owner': 'mjmayer',
'password': None,
'updated': '2020-07-23T15:04:15.981Z',
'webhook': None,
'webhookSlack': None,
'webhookSlackToFrom': None}
'''
Enhanced Addresses In a Custom Domain
Enhanced Addresses can be used in Custom Domains. This allows an address within a Custom Domain to have the features of a Enhanced Email Address.