mail

POST /v1/mail/services/{mailServiceId}/forwarders

Forward an address, a catch-all, or a whole domain.

Lahat ng mail endpoint

Pagpapatotoo

Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na mail.manage; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.

Ang endpoint na ito ay hindi nangangailangan ng id ng organisasyon. Natutukoy na ng iyong key ang organisasyong kinabibilangan nito, at nakatuon ang tugon dito.

Subukan ito

Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.

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[]> }'

Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API

Mga Detalye

`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`.

Mga Parameter

PangalanUriKailanganAno ito
mailServiceId (path)UuidOoEmail service ID (UUIDv7).

Katawan ng kahilingan

PangalanUriKailanganAno ito
sourcestringHindiRequired for `mailbox`; ignored for `catchall`/`wildcard`.
targetsstring[]Oo
kindMailForwarderKindHindi`mailbox` forwards one address; `catchall` takes anything not otherwise matched at the domain; `wildcard` forwards the whole domain to another one.

Tugon

PangalanUriKailanganAno ito
idstringOoThe mail backend's identifier.
sourcestringOoThe local part being forwarded for `mailbox`; the domain itself for `catchall`/`wildcard`.
targetsstring[]OoWhere mail goes. May include the backend's reserved drop/reject targets.
kindMailForwarderKindOo`mailbox` forwards one address; `catchall` takes anything not otherwise matched at the domain; `wildcard` forwards the whole domain to another one.

Mga error na maibabalik ng endpoint na ito

401 · 403 · 404 · 422 · 429 · 503