Remove a domain.
JavaScript
const options = { method: 'POST', headers: { 'Connect-Protocol-Version': '<connect-protocol-version>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: JSON.stringify({id: '<string>'}) }; fetch('https://api.simpleemailapi.dev/v1.DomainService/DeleteDomain', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "message": "<string>" }
API key authentication. Get your API key from the SimpleEmailAPI dashboard and include it in the Authorization header as: Bearer sea_live_xxxxx
Define the version of the Connect protocol
1
Define the timeout, in ms
Success