mail

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

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

Све mail крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу mail.manage; кључ без ње се одбија уз 403, а не 404.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

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

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

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.

Параметри

НазивТипОбавезноШта је ово
mailServiceId (path)UuidДаEmail service ID (UUIDv7).

Тело захтева

НазивТипОбавезноШта је ово
sourcestringНеRequired for mailbox; ignored for catchall/wildcard.
targetsstring[]Да—
kindMailForwarderKindНеmailbox forwards one address; catchall takes anything not otherwise matched at the domain; wildcard forwards the whole domain to another one.

Одговор

НазивТипОбавезноШта је ово
idstringДаThe mail backend's identifier.
sourcestringДаThe local part being forwarded for mailbox; the domain itself for catchall/wildcard.
targetsstring[]ДаWhere mail goes. May include the backend's reserved drop/reject targets.
kindMailForwarderKindДаmailbox forwards one address; catchall takes anything not otherwise matched at the domain; wildcard forwards the whole domain to another one.

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 422 · 429 · 503