MaskedEmail
Defines a masked email address for privacy protection.
This object is only available with an Enterprise license.
This object can be configured from the WebUI under Account › Masked Addresses
Fields
enabled
Type:
Boolean· default:trueWhether this masked email address is enabled
accountId
Type:
Id<Account>· read-onlyIdentifier for the account this masked email address belongs to
email
Type:
String· server-setThe masked email address
description
Type:
String?Description of the masked email address
forDomain
Type:
String?The domain name of the site this address was created for, e.g. "https://example.com". This is intended to be added automatically by password managers.
createdAt
Type:
UTCDateTime· server-setThe date-time the email address was created.
createdBy
Type:
String?The name of the client that created this email address. This will be set by the server automatically based on the credentials used to authenticate the request, e.g. "ACME Password Manager".
expiresAt
Type:
UTCDateTime?· read-onlyExpiration date of the email address
url
Type:
String?A URL pointing back to the integrator's use of this email address, e.g. a custom-uri to open "ACME Password Manager" at the appropriate entry.
emailPrefix
Type:
EmailLocalPart?· read-onlyThis is only used on create and otherwise ignored; if supplied, the server-assigned email will start with the given prefix. The string MUST be <= 64 characters in length and MUST only contain characters a-z, 0-9 and _ (underscore).
emailDomain
Type:
DomainName?· read-onlyThis is only used on create and otherwise ignored; if supplied, the server-assigned email will end with the given domain.
JMAP API
The MaskedEmail object is available via the urn:stalwart:jmap capability.
x:MaskedEmail/get
This is a standard Foo/get method as defined in RFC 8620, Section 5.1.
This method requires the sysMaskedEmailGet permission.
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:MaskedEmail/get",
{
"ids": [
"id1"
]
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'
x:MaskedEmail/set
This is a standard Foo/set method as defined in RFC 8620, Section 5.3.
Supports create, update, and destroy operations in a single call.
Create
This operation requires the sysMaskedEmailCreate permission.
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:MaskedEmail/set",
{
"create": {
"new1": {}
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'