domains

POST /v1/domains/{domainId}/email-routing/rules

Add a forwarding rule.

Све domains крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу domains.dns.manage; кључ без ње се одбија уз 403, а не 404.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

curl -X POST https://api.zinndigital.com/v1/domains/{domainId}/email-routing/rules \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "matcher": <string>, "destinations": <string[]> }'

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

Forward mail for one address to one or more verified destinations, or drop it. drop is a chosen behaviour and is never inferred from an empty destination list. Requires domains.dns.manage.

Параметри

НазивТипОбавезноШта је ово
domainId (path)UuidДаThe domain's id.

Тело захтева

НазивТипОбавезноШта је ово
matcherstringДа—
destinationsstring[]Да—
actionEmailRoutingActionНеdrop is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
namestringНе—
enabledbooleanНе—

Одговор

НазивТипОбавезноШта је ово
rule_idstringДа—
matcherstringДаThe address this rule applies to. Empty for the catch-all.
destinationsstring[]Да—
actionEmailRoutingActionДаdrop is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
namestringДа—
enabledbooleanДа—
catch_allbooleanДа—
unsupportedbooleanДаtrue when the provider's rule uses a shape this API cannot express — a Worker target, say. Such a rule is shown read-only rather than hidden: hiding it would make this screen…

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 422 · 429 · 503