domains

POST /v1/domains/{domainId}/email-routing/rules

Add a forwarding rule.

Tüm domains uç noktaları

Kimlik Doğrulama

Bearer token olarak bir API anahtarı gönderin. Anahtar domains.dns.manage iznine sahip olmalıdır; bu izne sahip olmayan bir anahtar 404 ile değil, 403 ile reddedilir.

Bu uç nokta hiçbir organizasyon kimliği almaz. Anahtarınız zaten ait olduğu organizasyonu tanımlar ve yanıt bu organizasyonla sınırlandırılır.

Dene

Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.

curl -X POST https://api.zinndigital.com/v1/domains/{domainId}/email-routing/rules \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "matcher": <string>, "destinations": <string[]> }'

Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın

Ayrıntılar

Forward mail for one address to one or more verified destinations, or drop it. `drop` is a chosen behaviour and is never inferred from an empty destination list. Requires `domains.dns.manage`.

Parametreler

AdTürZorunluNe olduğu
domainId (path)UuidEvetThe domain's id.

İstek gövdesi

AdTürZorunluNe olduğu
matcherstringEvet
destinationsstring[]Evet
actionEmailRoutingActionHayır`drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
namestringHayır
enabledbooleanHayır

Yanıt

AdTürZorunluNe olduğu
rule_idstringEvet
matcherstringEvetThe address this rule applies to. Empty for the catch-all.
destinationsstring[]Evet
actionEmailRoutingActionEvet`drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
namestringEvet
enabledbooleanEvet
catch_allbooleanEvet
unsupportedbooleanEvet`true` when the provider's rule uses a shape this API cannot express — a Worker target, say. Such a rule is shown read-only rather than hidden: hiding it would make this screen…

Bu uç noktanın dönderebileceği hatalar

401 · 403 · 404 · 422 · 429 · 503