POST /v1/mail/services/{mailServiceId}/forwarders
Forward an address, a catch-all, or a whole domain.
Kimlik Doğrulama
Bearer token olarak bir API anahtarı gönderin. Anahtar mail.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/mail/services/{mailServiceId}/forwarders \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "targets": <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
source is required for mailbox and ignored for catchall/wildcard, where the whole domain is the source — so it may be omitted for those rather than sending a value the backend discards. Requires mail.manage.
Parametreler
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
mailServiceId (path) | Uuid | Evet | Email service ID (UUIDv7). |
İstek gövdesi
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
source | string | Hayır | Required for mailbox; ignored for catchall/wildcard. |
targets | string[] | Evet | — |
kind | MailForwarderKind | Hayır | mailbox forwards one address; catchall takes anything not otherwise matched at the domain; wildcard forwards the whole domain to another one. |
Yanıt
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
id | string | Evet | The mail backend's identifier. |
source | string | Evet | The local part being forwarded for mailbox; the domain itself for catchall/wildcard. |
targets | string[] | Evet | Where mail goes. May include the backend's reserved drop/reject targets. |
kind | MailForwarderKind | Evet | mailbox forwards one address; catchall takes anything not otherwise matched at the domain; wildcard forwards the whole domain to another one. |
Bu uç noktanın dönderebileceği hatalar
401 · 403 · 404 · 422 · 429 · 503