---
title: "HEAD /providers/Microsoft.DocumentDB/databaseAccountNames/{accountName}"
method: HEAD
path: "/providers/Microsoft.DocumentDB/databaseAccountNames/{accountName}"
---

# HEAD /providers/Microsoft.DocumentDB/databaseAccountNames/{accountName}

`HEAD /providers/Microsoft.DocumentDB/databaseAccountNames/{accountName}`

Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters.

## Path parameters

- `accountName` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK. The account name is valid but is already in use.

## Other responses

- `404` — Not Found. The account name is available and valid.

---

[API](https://skmtc.dev/azure/apis/cosmos-db.md) · [All operations](https://skmtc.dev/azure/apis/cosmos-db/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/cosmos-db/revisions/33b0524b6a01/schema)
