POST /v1/mail/services/{mailServiceId}/forwarders
Forward an address, a catch-all, or a whole domain.
Аутентификација
Пошаљите 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). |
Тело захтева
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
source | string | Не | Required for mailbox; ignored for catchall/wildcard. |
targets | string[] | Да | — |
kind | MailForwarderKind | Не | mailbox forwards one address; catchall takes anything not otherwise matched at the domain; wildcard forwards the whole domain to another one. |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
id | string | Да | The mail backend's identifier. |
source | string | Да | The local part being forwarded for mailbox; the domain itself for catchall/wildcard. |
targets | string[] | Да | Where mail goes. May include the backend's reserved drop/reject targets. |
kind | MailForwarderKind | Да | 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