domains

POST /v1/domain-watches

Watch a domain — any domain, including one registered elsewhere.

Tất cả các điểm cuối domains

Xác thực

Gửi khóa API dưới dạng mã thông báo bearer. Điểm cuối này không nêu rõ quyền cụ thể trong thông số kỹ thuật, vì vậy hãy cấp cho khóa của bạn quyền tối thiểu cần thiết và kiểm tra phản hồi thay vì phỏng đoán.

Nơi điền id tổ chức của bạn

Endpoint này nhận org_id làm một trường trong phần thân JSON.

Mã tổ chức của bạn nằm ở màn hình khóa API trong bảng điều khiển, ngay bên cạnh khóa đó. Đây là cùng một mã trong mọi lệnh gọi mà bạn thực hiện.

Dùng thử

Thay thế bất kỳ nội dung nào trong ngoعل (angle brackets) bằng giá trị của riêng bạn và trình giữ chỗ key bằng một key từ trang tổng quan của bạn.

curl -X POST https://api.zinndigital.com/v1/domain-watches \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "fqdn": <string> }'

Đã đăng nhập? Bảng điều khiển API trong trang quản lý của bạn sẽ tự điền ID tổ chức thực tế và khóa của riêng bạn, sau đó chạy yêu cầu đối với API trực tiếp để bạn có thể xem phản hồi thực tế. Mở điểm cuối này trong bảng điều khiển API

Chi tiết

Adds `fqdn` to the caller's watchlist with `source: manual`. ⭐ Idempotent by `(org, fqdn)`: watching a domain that is already watched returns the existing row rather than erroring, because the customer's intent — *"I want this watched"* — is already satisfied and a 409 would be a worse answer to it. ⭐ Re-adding a domain the customer previously **removed** un-removes it. That is the one thing that clears `removed_at`, and it must be a deliberate act by the customer rather than a side effect of a provision.

Nội dung yêu cầu

TênLoạiBắt buộcNội dung này là gì
fqdnstringAny registrable domain, including one registered elsewhere.
org_idstringKhôngThe organisation to watch it for. Defaults to the caller's own.

Phản hồi

TênLoạiBắt buộcNội dung này là gì
idstring
fqdnstringNormalised lowercase punycode.
sourcestring<registered, hosting, manual>How it came to be watched. `registered` — we hold it. `hosting` — it is attached to a hosting account with us, whoever registered it. `manual` — the customer added it. ⛔ A domai…
domain_idstringKhôngThe `Domain` row, when the watched name is one of ours.
site_idstringKhông
mutedbooleanWhether alerts are currently suppressed.
muted_untilstringKhông
expires_atstringKhông⛔ `null` is **"the registry did not say"**, never "it does not expire". Render it as unknown; a client that treats it as a far-future date shows a customer a reassuring answer w…
days_until_expiryintegerKhôngWhole days, or `null` when `expires_at` is unknown.
registrarstringKhôngAs the registry reports it. Empty when redacted or not yet read.
nameserversstring[]Không
statusstring[]KhôngThe EPP status set — `clientHold`, `redemptionPeriod`, `pendingDelete`, …
last_checked_atstringKhôngWhen the registry last answered. ⛔ Every value on this row is a snapshot of the outside world taken at this instant, so it is never rendered without this beside it (§2.36).
created_atstring

Các lỗi điểm cuối này có thể trả về

401 · 403 · 422