For Workers & Pages, what is the name of the domain?
N/A
What is the error number?
2007
What is the error message?
Invalid Input: must be a a subdomains of example.com
What is the issue or error you’re encountering
Cannot create enable email routing for any domain
What steps have you taken to resolve the issue?
I was initially creating resources via terraform, it threw error and I thought the issue was with the terraform cloudflare provider.
Found a couple of topics in the forum but they were never anwered.
It turned out that the API throws the same error.
What are the steps to reproduce the issue?
I have the same issue when trying to enable email routing on any domain in my account
Send Curl Request:
curl https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/email/routing/enable \
-H 'Content-Type: application/json' \
-H "X-Auth-Email: [email protected]" \
-H "X-Auth-Key: some-secret-key" \
-d '{}'
You’ll get a response like this:
{
"result": null,
"success": false,
"errors": [
{
"code": 2007,
"message": "Invalid Input: must be a a subdomains of example.com"
}
],
"messages": [
{
"code": 2007,
"message": "Invalid Input: must be a a subdomains of example.com"
}
]
}