domains

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

Add a forwarding rule.

Alle domains-eindpunten

Authenticatie

Stuur een API-sleutel mee als bearer token. De sleutel moet over de permissie domains.dns.manage beschikken; een sleutel zonder deze permissie wordt geweigerd met een 403 in plaats van een 404.

Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.

Probeer het

Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.

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

Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console

Details

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

Parameters

NaamTypeVerplichtWat dit is
domainId (path)UuidJaThe domain's id.

Aanvraaglichaam

NaamTypeVerplichtWat dit is
matcherstringJa
destinationsstring[]Ja
actionEmailRoutingActionNee`drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
namestringNee
enabledbooleanNee

Reactie

NaamTypeVerplichtWat dit is
rule_idstringJa
matcherstringJaThe address this rule applies to. Empty for the catch-all.
destinationsstring[]Ja
actionEmailRoutingActionJa`drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
namestringJa
enabledbooleanJa
catch_allbooleanJa
unsupportedbooleanJa`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…

Fouten die dit eindpunt kan retourneren

401 · 403 · 404 · 422 · 429 · 503