mail

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

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

Të gjitha pikat e skajshme mail

Autentifikimi

Drgoni një çelës API si një token mbajtës. Çelësi duhet të ketë lejen mail.manage; një çelës pa të refuzohet me 403, jo 404.

Ky pikëndalim nuk pranon id të organizatës. Çelësi juaj tashmë identifikon organizatën së cilës i përket dhe përgjigjja kufizohet vetëm për atë.

Provoje

Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.

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

Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së

Detajet

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

Parametrat

EmriLlojiKërkohetÇfarë është kjo
mailServiceId (path)UuidPoEmail service ID (UUIDv7).

Trupi i kërkesës

EmriLlojiKërkohetÇfarë është kjo
sourcestringJoRequired for `mailbox`; ignored for `catchall`/`wildcard`.
targetsstring[]Po
kindMailForwarderKindJo`mailbox` forwards one address; `catchall` takes anything not otherwise matched at the domain; `wildcard` forwards the whole domain to another one.

Përgjigja

EmriLlojiKërkohetÇfarë është kjo
idstringPoThe mail backend's identifier.
sourcestringPoThe local part being forwarded for `mailbox`; the domain itself for `catchall`/`wildcard`.
targetsstring[]PoWhere mail goes. May include the backend's reserved drop/reject targets.
kindMailForwarderKindPo`mailbox` forwards one address; `catchall` takes anything not otherwise matched at the domain; `wildcard` forwards the whole domain to another one.

Gabimet që ky pikëndalim mund të kthejë

401 · 403 · 404 · 422 · 429 · 503