Email Routing API (Email Verification)

Hi there, I am a Devolper and I am integerating Cloudflare Email Routing API into my App by this : async function createCloudflareRoutingRule() { const url = https://api.cloudflare.com/client/v4/zones/${accountId}/email/routing/rules; const headers = { Authorization: Bearer ${apiToken}, 'Content-Type': 'application/json' }; const data = { enabled: true, name: "TestRule", actions: [ { type: "forward", value: [ "[email protected]", ] } ], matchers: [ { "type": "literal", "field": "to", "value": "[email protected]" } ] } try { const response = await axios.post(url, data, { headers: headers }); return response.data; } catch (error) { console.error('Error creating Cloudflare routing rule:', error.message); console.log(error.response.data); console.log(error.response.status); console.log(error.response.headers); return null; } } Now i am facing the Problem the forwarding Email Address does not receive any kind of confirmation Email. #EmailRouting
3 Replies
Chaika
Chaika13mo ago
If you go into the dashboard, for Email -> Email Routing -> Routing Rules, is the status Destination Address not found? You need to add the dest. address first and verify it seperately
Muhammad Talha
Muhammad TalhaOP13mo ago
Hi There Thank you Very Much for help. I was inspecting the Cloud flare Email Routing Services + API Services for 2 days But Got Exhausted.

Did you find this page helpful?