mail

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

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

Բոլոր mail վերջնակետերը

Բոլոր մշակողների փաստաթղթերը

Նույնականացում

Ուղարկեք API բանալին որպես bearer token: Բանալին պետք է ունենա 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