All URIs are relative to https://developers.hostinger.com
| Method | HTTP request | Description |
|---|---|---|
| get_profile_domain_dns_status_v1 | GET /api/reach/v1/profiles/{profileUuid}/domains/dns-status | Get profile domain DNS status |
| list_profiles_v1 | GET /api/reach/v1/profiles | List Profiles |
ReachV1ProfilesDomainsDnsStatusResource get_profile_domain_dns_status_v1(profile_uuid)
Get 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.
- Bearer Authentication (apiToken):
import hostinger_api
from hostinger_api.models.reach_v1_profiles_domains_dns_status_resource import ReachV1ProfilesDomainsDnsStatusResource
from hostinger_api.rest import ApiException
from pprint import pprint
# Configure Bearer authorization: apiToken
configuration = hostinger_api.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with hostinger_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hostinger_api.ReachProfilesApi(api_client)
profile_uuid = '550e8400-e09b-41d4-a716-400055000000' # str | Profile uuid parameter
try:
# Get profile domain DNS status
api_response = api_instance.get_profile_domain_dns_status_v1(profile_uuid)
print("The response of ReachProfilesApi->get_profile_domain_dns_status_v1:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ReachProfilesApi->get_profile_domain_dns_status_v1: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| profile_uuid | str | Profile uuid parameter |
ReachV1ProfilesDomainsDnsStatusResource
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success response | - |
| 401 | Unauthenticated response | - |
| 500 | Error response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[ReachV1ProfilesProfileResource] list_profiles_v1()
List Profiles
This endpoint returns all profiles available to the client, including their basic information.
- Bearer Authentication (apiToken):
import hostinger_api
from hostinger_api.models.reach_v1_profiles_profile_resource import ReachV1ProfilesProfileResource
from hostinger_api.rest import ApiException
from pprint import pprint
# Configure Bearer authorization: apiToken
configuration = hostinger_api.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with hostinger_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hostinger_api.ReachProfilesApi(api_client)
try:
# List Profiles
api_response = api_instance.list_profiles_v1()
print("The response of ReachProfilesApi->list_profiles_v1:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ReachProfilesApi->list_profiles_v1: %s\n" % e)This endpoint does not need any parameter.
List[ReachV1ProfilesProfileResource]
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success response | - |
| 401 | Unauthenticated response | - |
| 500 | Error response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]