---
title: "Verify domain ownership"
method: POST
path: "/v1/domains/{domain_id}/verify"
tags: ["domains"]
---

# Verify domain ownership

`POST /v1/domains/{domain_id}/verify`

## Request

- Base URL: `https://api.ethiack.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ethiack.com/v1/domains/{domain_id}/verify`
- Auth: none declared

Run the DNS TXT-record check and mark the domain verified on success.

An already verified domain, of either kind, answers success at once
without re-running any proof, as legacy did.

Args:
    domain_id (int): The domain's identifier.
    db (AsyncSession): Request-scoped database session.
    context (ActiveContext): Resolved caller identity and scope.

Returns:
    SuccessResponse: The legacy envelope, ``"Domain verified"``.

Raises:
    VerificationFailedError: The lookup answered and the expected TXT
        record was absent -- answered 422, the documented code, so the
        caller knows to publish it.
    DnsLookupError: No resolver could answer, so the proof was not
        attempted -- answered 503 with ``Retry-After``, never 422,
        which would blame the caller's DNS for our own outage.
    PermissionError: Cerbos denied the activate.

## Path parameters

- `domain_id` integer, required

## Response `200`

Successful Response

- SuccessResponse: Standard response for successful write operations. Matches the ``SuccessResponse`` contract from api-3. Attributes: code (int): HTTP status code. description (str): Human-readable result description. id (int | str | None): Created/affected resource ID. success (bool): Always ``True`` for successful responses.
  - `code` integer, required
  - `description` string, required
  - `id` union
    - integer
    - string
  - `success` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ethiack/apis/ethiack-api.md) - [All operations](https://skmtc.dev/ethiack/apis/ethiack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ethiack/apis/ethiack-api/revisions/4eaba89bfebf?raw)
