---
title: "Verify domain ownership"
method: POST
path: "/api/hosting/v1/domains/verify-ownership"
tags: ["Hosting: Domains"]
---

# Verify domain ownership

`POST /api/hosting/v1/domains/verify-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).

## Request body

- HostingV1DomainsVerifyOwnershipRequest
  - `domain` string, required — Domain to verify ownership for

## Response `200`

Success response

- HostingV1DomainsDomainAccessResource
  - `domain` string — Domain name
  - `is_accessible` boolean — Whether domain is accessible
  - `txt_to_verify` string — TXT record for verification

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/e684196cdec9/schema)
