Get domains settings: get settings needed to set correctly the domain

Get /settings/domains/settings

Parameters:

None

Response:

Name Description Type
dkim

DKIM settings

Name Description Type
prefix mta._domainkey. String
value DKIM key String
record TXT String
Array
spf

SPF settings

Name Description Type
value spf.example.com String
record SPF String
Array
tracking

Tracking settings

Name Description Type
value link.domaincustom.net String
record CNAME String
Array
Programming language:

Response exemple:

							{
								"dkim":
								{
									"prefix": "mta._domainkey.",
									"value": ""
									"record": "TXT"
								},
								"spf":
								{
									"value": "spf.example.com",
									"record": "SPF"
								}
								"tracking":
								{
									"value": "link.domaincustom.net",
									"record": "CNAME"
								}
							}
							

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/domains/settings
							
require 'vendor/autoload.php';

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

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