Senders

Delete Sender

Permanently delete a sender from your account. This action cannot be undone.

DELETEhttps://graph.sendcorex.com/v3.0/senders/:id
!

This is permanent and cannot be undone.

Path parameters

  • idstringrequired

    The 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

  • code

    SENDER_DELETED when the sender was removed.

  • id

    The 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.

  • 401INVALID_API_KEY

    The API key is invalid or revoked.