Delete an email

Delete /blacklists/{type}/{email}

URL parameters:

Name Description Type Mandatory
type

Type of blacklist.

Values available:

  • bounces
  • unsubscribes
  • complaints
  • blacklist (remove the address from all type of blacklist)
String Yes
email Email address you want to remove String Yes

Response:

Name Description Type
Response Code 200 OK Http Status Code
Programming language:

Response exemple:

								No json response
							

Code example:

								curl -X DELETE -H "X-Tipimail-apiUser:YOUR_SMTP_USERNAME" -H "X-Tipimail-ApiKey:YOUR_SMTP_KEY" https://api.tipimail.com/v1/blacklists/bounces/email@example.com
							
require 'vendor/autoload.php';

$tipimail = new Tipimail\Tipimail('YOUR_SMTP_USERNAME', 'YOUR_API_KEY');

try {
	
	$tipimail->getBlacklistsService()->deleteBounce('mail@example.com');
	
	$tipimail->getBlacklistsService()->deleteComplaint('mail@example.com');
	
	$result = $tipimail->getBlacklistsService()->deleteUnsubscriber('mail@example.com');
	var_dump($result);
		
}
catch(Tipimail\Exceptions\TipimailException $e) {
	echo 'Exception received :', $e->getMessage(), "\n";
	
}