Your API Key ()
Test it (API documentation)
Set the next API call example parameters and click on the Execute button to test your API Key.
Javascript code
function sendEmail(emailJson) {
$.ajax({
method: 'POST',
url: 'https://api.mustache.website/',
data: JSON.stringify(emailJson),
headers: {
'Content-Type': 'application/json',
'X-Api-Key': 'api key'
},
dataType: 'json',
success: function (response) {
console.log(response);
},
error: function (xhr, textStatus, errorThrown) {
console.log(xhr);
}
});
}