domains

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

Add a forwarding rule.

Усі кінцеві точки domains

Автентифікація

Надішліть ключ API як маркер носія (bearer token). Ключ повинен мати дозвіл domains.dns.manage; ключ без нього відхиляється з кодом 403, а не 404.

Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.

Спробувати

Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.

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 у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого 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