---
title: "POST /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/checkDomainAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/checkDomainAvailability"
tags: ["CognitiveServicesAccounts"]
---

# POST /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/checkDomainAvailability

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

Check whether a domain is available.

## Parameters

- `../../../../../common-types/resource-management/v3/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../common-types/resource-management/v3/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref

## Request body

- CheckDomainAvailabilityParameter — Check Domain availability parameter.
  - `subdomainName` string, required — The subdomain name to use.
  - `type` string, required — The Type of the resource.
  - `kind` string — The kind (type) of cognitive service account.

## Response `200`

The request has succeeded.

- DomainAvailability — Domain availability.
  - `isSubdomainAvailable` boolean — Indicates the given SKU is available or not.
  - `reason` string — Reason why the SKU is not available.
  - `subdomainName` string — The subdomain name to use.
  - `type` string — The Type of the resource.
  - `kind` string — The kind (type) of cognitive service account.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/cognitiveservices-microsoft-cognitiveservices.md) · [All operations](https://skmtc.net/azure/apis/cognitiveservices-microsoft-cognitiveservices/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/cognitiveservices-microsoft-cognitiveservices/revisions/691c4877e0b8/schema)
