domains

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

Add a forwarding rule.

すべての domains エンドポイント

認証

ベアラー トークンとして API キーを送信します。キーには domains.dns.manage 権限が付与されている必要があります。権限のないキーは 404 ではなく 403 で拒否されます。

このエンドポイントは組織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