---
title: "Check if a domain is available for registration."
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability"
tags: ["Domains"]
---

# Check if a domain is available for registration.

`POST /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability`

Check if a domain is available for registration.

## Path parameters

- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- NameIdentifier — unresolved $ref

## Response `200`

OK

- DomainAvailablilityCheckResult — Domain availability check result.
  - `name` string — Name of the domain.
  - `available` boolean — <code>true</code> if domain can be purchased using CreateDomain API; otherwise, <code>false</code>.
  - `domainType` 'Regular' | 'SoftDeleted' — Valid values are Regular domain: Azure will charge the full price of domain registration, SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost anything.

## Other responses

- `default` — App Service error response.

---

[API](https://skmtc.dev/azure/apis/domains-api-client.md) · [All operations](https://skmtc.dev/azure/apis/domains-api-client/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/domains-api-client/revisions/7d583d02fb0e/schema)
