DokumentaceAPI ReferenceOdesílací domény

Smazání odesílací domény

const response = await fetch('https://api.emailit.com/v2/sending-domains/sd_1234567890', {
  method: 'DELETE',
  headers: {
    'Authorization': 'Bearer em_test_51RxCWJ...vS00p61e0qRE',
    'Content-Type': 'application/json'
  }
});

const result = await response.json();

Odpovědi

{
  "object": "sending_domain",
  "id": 1234567890,
  "name": "mail.yourdomain.com",
  "deleted": true
}