mail

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

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

Tutti gli endpoint mail

Autenticazione

Invia una chiave API come token di tipo bearer. La chiave deve disporre dell'autorizzazione mail.manage; una chiave sprovvista di tale autorizzazione viene rifiutata con 403 anziché 404.

Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.

Provalo

Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua 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[]> }'

Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API

Dettagli

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

Parametri

NomeTipoObbligatorioChe cos'è
mailServiceId (path)UuidEmail service ID (UUIDv7).

Corpo della richiesta

NomeTipoObbligatorioChe cos'è
sourcestringNoRequired for `mailbox`; ignored for `catchall`/`wildcard`.
targetsstring[]
kindMailForwarderKindNo`mailbox` forwards one address; `catchall` takes anything not otherwise matched at the domain; `wildcard` forwards the whole domain to another one.

Risposta

NomeTipoObbligatorioChe cos'è
idstringThe mail backend's identifier.
sourcestringThe 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.

Errori che questo endpoint può restituire

401 · 403 · 404 · 422 · 429 · 503