Harden Email
Request URL
GET /harden/:AFiUserId/:recipientEmailB64
Description
This API is used to disavow an email address and ensure that it cannot be recovered.
The email address is given as a path parameter, base64 encoded.
Snippet Examples
javascript
const axios = require('axios');
const config = {
method: 'GET',
url: '${AMPLIFI_BASE_URL}/harden/:AFiUserId/:recipientEmailB64',
headers: {
'token': "A long random string token received from /token request"
},
};
let result;
try {
result = await axios.request(config);
if (result.status === 200) {
console.log(JSON.stringify(result.data));
}
} catch (err) {
console.log({
errCode: err.code,
responseStatus: err.response && err.response.status,
data: err.response && JSON.stringify(err.response.data)
});
}
cURL