---
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.

## Changes

- **2026-04-28** (v2) `53dd09c3a139` — 1 breaking, 1 info
  - removed the required property `data/trustee_service` from the response with the `201` status
  - added the required property `data/trustee` to the response with the `201` status
- **2026-03-19** (v2) `8f6934d1a399` — 1 info
  - added the required property `data/trustee_service` to the response with the `201` status
- **2025-07-11** (v2) `06780be0ef17` — 1 breaking, 14 info
  - the request property `name` became required
  - the response property `data` became required for the status `201`
  - the response property `data/account_id` became required for the status `201`
  - the response property `data/auto_renew` became required for the status `201`
  - …11 more
- **2023-07-18** (v2) `c8591dcf8c29` — 17 breaking, 1 info
  - the response property `data/expires_at` became nullable for the status `201`
  - the response property `data/registrant_id` became nullable for the status `201`
  - the response property `data` became optional for the status `201`
  - the response property `data/account_id` became optional for the status `201`
  - …14 more

[Change history](https://skmtc.dev/dnsimple/apis/dnsimple-api/changes/:account/domains/post.md)

---

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