ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข3y agoโ€ข
4 replies
Muhammad Talha

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
https://api.cloudflare.com/client/v4/zones/${accountId}/email/routing/rules
;

const headers = {
Authorization:
Bearer ${apiToken}
Bearer ${apiToken}
,
'Content-Type': 'application/json'
};
const data = {
enabled: true,
name: "TestRule",
actions: [
{
type: "forward",
value: [
"muhammadtalha4163@gmail.com",
]
}
],
matchers: [
{
"type": "literal",
"field": "to",
"value": "muhammadtalha@texagon.io"
}
]
}

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
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Email Routing
Cloudflare DevelopersCDCloudflare Developers / general-help
4w ago
Email Routing?
Cloudflare DevelopersCDCloudflare Developers / general-help
4w ago
Email Routing
Cloudflare DevelopersCDCloudflare Developers / general-help
3mo ago
Email Routing
Cloudflare DevelopersCDCloudflare Developers / general-help
10mo ago