---
title: "Add Domain Route"
method: POST
path: "/domains"
tags: ["domains"]
---

# Add Domain Route

`POST /domains`

## Request

- Base URL: `https://dnsdoctor.dev/api/v1`
- URL: `https://dnsdoctor.dev/api/v1/domains`
- Auth: none required

Add a domain to the token's account and return the record to publish.

201 whether the row was created or already existed (`created` says which):
an agent re-reading a domain it added last week needs the row, not a
conflict to interpret. The wizard's 409-resume stays on the session route,
where a human is the one resuming.

## Request body

- DomainIn: `POST /v1/domains` — a bare domain, the same shape as `ScanIn`.
  - `domain` string, required

## Response `201`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dnsdoctor/apis/dns-doctor-api.md) · [All operations](https://skmtc.dev/dnsdoctor/apis/dns-doctor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dnsdoctor/apis/dns-doctor-api/revisions/1d0114806e76?raw)
