Skip to content

Remove phone from subscriber

Removes the phone number from a specific subscriber.

HTTP method: DELETE

https://api.sender.net/v2/subscribers/{id}/remove_phone


ParameterTypeDescription
idstring requiredSubscriber ID

const url = new URL("https://api.sender.net/v2/subscribers/{id}/remove_phone");
let headers = {
"Authorization": "Bearer [your-token]",
"Content-Type": "application/json",
"Accept": "application/json",
};
let bodyContent = {};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(bodyContent)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Example Response
{
"success": true,
"message": "Subscriber phone removed"
}