mail

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

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

Alle mail-eindpunten

Authenticatie

Stuur een API-sleutel mee als bearer token. De sleutel moet over de permissie mail.manage beschikken; een sleutel zonder deze permissie wordt geweigerd met een 403 in plaats van een 404.

Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.

Probeer het

Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw 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[]> }'

Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console

Details

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

Parameters

NaamTypeVerplichtWat dit is
mailServiceId (path)UuidJaEmail service ID (UUIDv7).

Aanvraaglichaam

NaamTypeVerplichtWat dit is
sourcestringNeeRequired for `mailbox`; ignored for `catchall`/`wildcard`.
targetsstring[]Ja
kindMailForwarderKindNee`mailbox` forwards one address; `catchall` takes anything not otherwise matched at the domain; `wildcard` forwards the whole domain to another one.

Reactie

NaamTypeVerplichtWat dit is
idstringJaThe mail backend's identifier.
sourcestringJaThe local part being forwarded for `mailbox`; the domain itself for `catchall`/`wildcard`.
targetsstring[]JaWhere mail goes. May include the backend's reserved drop/reject targets.
kindMailForwarderKindJa`mailbox` forwards one address; `catchall` takes anything not otherwise matched at the domain; `wildcard` forwards the whole domain to another one.

Fouten die dit eindpunt kan retourneren

401 · 403 · 404 · 422 · 429 · 503