All URIs are relative to https://developers.hostinger.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| getProfileDomainDNSStatusV1() | GET /api/reach/v1/profiles/{profileUuid}/domains/dns-status | Get profile domain DNS status |
| listProfilesV1() | GET /api/reach/v1/profiles | List Profiles |
getProfileDomainDNSStatusV1($profileUuid): \Hostinger\Model\ReachV1ProfilesDomainsDnsStatusResourceGet profile domain DNS status
Retrieve the DNS configuration status for a profile's domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\ReachProfilesApi(config: $config);
$profileUuid = 550e8400-e09b-41d4-a716-400055000000; // string | Profile uuid parameter
try {
$result = $apiInstance->getProfileDomainDNSStatusV1($profileUuid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReachProfilesApi->getProfileDomainDNSStatusV1: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| profileUuid | string | Profile uuid parameter |
\Hostinger\Model\ReachV1ProfilesDomainsDnsStatusResource
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listProfilesV1(): \Hostinger\Model\ReachV1ProfilesProfileResource[]List Profiles
This endpoint returns all profiles available to the client, including their basic information.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Hostinger\Api\ReachProfilesApi(config: $config);
try {
$result = $apiInstance->listProfilesV1();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReachProfilesApi->listProfilesV1: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
\Hostinger\Model\ReachV1ProfilesProfileResource[]
[Back to top] [Back to API list] [Back to Model list] [Back to README]