domains

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

Add a forwarding rule.

Svi domains krajnji točke

Autentifikacija

Pošaljite API ključ kao nosivi token. Ključ mora imati dozvolu domains.dns.manage; ključ bez nje se odbija s kodom 403, a ne 404.

Ova krajnja točka ne prihvaća ID organizacije. Vaš ključ već identificira organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.

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

Prijavljeni ste? API konzola na vašoj nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli

Pojedinosti

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

Parametri

NazivVrstaObaveznoŠto je to
domainId (path)UuidDaThe domain's id.

Tijelo zahtjeva

NazivVrstaObaveznoŠto je to
matcherstringDa
destinationsstring[]Da
actionEmailRoutingActionNe`drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
namestringNe
enabledbooleanNe

Odgovor

NazivVrstaObaveznoŠto je to
rule_idstringDa
matcherstringDaThe address this rule applies to. Empty for the catch-all.
destinationsstring[]Da
actionEmailRoutingActionDa`drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
namestringDa
enabledbooleanDa
catch_allbooleanDa
unsupportedbooleanDa`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…

Pogreške koje ova krajnja točka može vratiti

401 · 403 · 404 · 422 · 429 · 503