reseller

POST /v1/reseller/brand/sending-domain

Send your clients' e-mail from your own domain.

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

Tất cả tài liệu dành cho nhà phát triển

Xác thực

Gửi khóa API dưới dạng mã thông báo bearer. Khóa này phải có quyền reseller.manage; khóa không có quyền này sẽ bị từ chối với mã lỗi 403, không phải 404.

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

Điểm cuối này nhận org_id làm tham số truy vấn. Hãy bỏ trống để áp dụng cho toàn bộ cây thuê của bạn; hoặc truyền giá trị vào để thu hẹp phạm vi gọi về một tổ chức duy nhất.

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/reseller/brand/sending-domain \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "domain": <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

Registers a sending domain and returns the DNS records to publish. Requires reseller.manage. ⛔ This is the largest single white-label leak and no template change could close it. Everything inside a notification was already resolved to your brand — the name, the call-to-action link — while the envelope still read Zinn Digital® Billing <billing@zinndigital.com>, which is the line your client actually looks at. ⛔ Attaching does not switch the sender. Publish the records, then call /verify; only a successful verification moves your mail onto your domain, because mail from an unverified domain does not arrive. A domain is already attached ⇒ 409. Remove it first — replacing it silently would orphan the previous one at the provider.

Tham số

TênLoạiBắt buộcNội dung này là gì
org_id (query)UuidKhôngThe organization this call acts on. Optional for a caller with exactly one direct membership; required for anyone with more than one — which is every reseller and every agency…

Nội dung yêu cầu

TênLoạiBắt buộcNội dung này là gì
domainstringJust the domain — acme.com or mail.acme.com, with no scheme and no path.

Phản hồi

TênLoạiBắt buộcNội dung này là gì
domainstring
verifiedbooleanThe mail provider's answer. Never inferred from domain being set.
providerstring
provider_statusstringThe provider's raw status word, for display. Never branch on it.
recordsBrandDnsRecord[]

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

401 · 403 · 409 · 422 · 429 · 503