Get sending configuration

Get /settings/sendingconfiguration

Parameters:

None

Response:

Name Description Type
accountId Account ID Int
trackOpens Enable track for open Boolean
trackClicks Enable track for clicks Boolean
googleAnalytics

Date used for Google Analytics

Name Description Type Mandatory
enable Enable track for google Analytics Boolean Yes
utmSource Source used for google Analytics String No
utmMedia Media used for google Analytics String No
utmContent Content used for google Analytics String No
utmCampaign Campaign used for google Analytics String No
Array
trackMailTo Enable track for mailto links Boolean
unsubscribe

Define unsubscribe parameter

Name Description Type
enable Enable unsubscribe link on your email Boolean
content Content use for your unsubscribe link String
Array
Programming language:

Response exemple:

								{
								  "accountId": "123456789",
								  "trackOpens": false,
								  "trackClicks": false,
								  "googleAnalytics": {},
								  "unsubscribe": {}
								}
							

Code example:

								curl -X GET -H "Content-Type: application/json" -H "X-Tipimail-ApiUser:YOUR_SMTP_USERNAME" -H "X-Tipimail-ApiKey:YOUR_SMTP_KEY" https://api.tipimail.com/v1/settings/sendingconfiguration
							
require 'vendor/autoload.php';

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

try {
	
	$result = $tipimail->getSettingsService()->getSendingConfigurationService()->get();
	var_dump($result);
		
}
catch(Tipimail\Exceptions\TipimailException $e) {
	echo 'Exception received :', $e->getMessage(), "\n";
	
}