Senders
Delete Sender
Permanently delete a sender from your account. This action cannot be undone.
DELETE
https://graph.sendcorex.com/v3.0/senders/:id!
This is permanent and cannot be undone.
Path parameters
idstringrequiredThe unique identifier of the sender to delete.
e.g.
"N4U292XC2ZD9W79UF4X4PSY0"
Quick start
import axios from 'axios';
const response = await axios.delete('https://graph.sendcorex.com/v3.0/senders/N4U292XC2ZD9W79UF4X4PSY0', {
headers: { Authorization: process.env.SENDCOREX_API_KEY },
});
console.log(response.data);Response
{
"success": true,
"code": "SENDER_DELETED",
"id": "N4U292XC2ZD9W79UF4X4PSY0"
}Response fields
codeSENDER_DELETEDwhen the sender was removed.idThe ID of the deleted sender.
Errors
HTTP-level errors return type, code and message. Errors marked CMD come back inside the command result, with HTTP 200.
- 401
INVALID_API_KEYThe API key is invalid or revoked.