v52

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-03269339953.6 KB
Hosting: Domains

Verify domain ownership

Verify ownership of a single domain and return the verification status.

Use this endpoint to check if a domain is accessible for you before using it for new websites. If the domain is accessible, the response will have is_accessible: true. If not, add the given TXT record to your domain's DNS records and try verifying again. Keep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.

Skip this verification when using Hostinger's free subdomains (*.hostingersite.com).

post/api/hosting/v1/domains/verify-ownership

Request body

domainstring required

Domain to verify ownership for

Example request

{
  "domain": "example.com"
}

Response

Success response

domainstring

Domain name

is_accessibleboolean

Whether domain is accessible

txt_to_verifystring

TXT record for verification

Example response

{
  "domain": "example.com",
  "txt_to_verify": "example.com=example-verification-code"
}