---
title: "Create a domain"
method: POST
path: "/{account}/domains"
tags: ["domains"]
---

# Create a domain

`POST /{account}/domains`

Creates a domain and the corresponding zone into the account.

When creating a domain using Solo or Teams subscription, the DNS services
for the zone will be automatically enabled and this will be charged on your
following subscription renewal invoices.

## Path parameters

- `account` integer, required

## Request body

- object
  - `name` string, required

## Response `201`

Domain created.

- object
  - `data` Domain, required
    - `id` integer, required
    - `account_id` integer, required
    - `registrant_id` integer, nullable, required
    - `name` string, required
    - `unicode_name` string, required
    - `state` 'hosted' | 'registered' | 'expired', required
    - `auto_renew` boolean, required
    - `private_whois` boolean, required
    - `expires_at` string, date-time, nullable, required — A nullable date-time value. The value can be null, when present the value is formatted according to the ISO 8601 specification.
    - `trustee` boolean, required
    - `expires_on` string, date — A date value formatted as ISO 8601.
    - `created_at` string, date-time, required — A date-time value, representing when the entry was created, formatted as ISO 8601.
    - `updated_at` string, date-time, required — A date-time value, representing when the entry was last updated, formatted as ISO 8601.

## Other responses

- `400` — A required parameter is missing or the request is invalid.

---

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