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 domain
What is the issue or error you’re encountering
Unable to enable email routing for root domain using api
What steps have you taken to resolve the issue?
Hi,
I’m trying to enable email routing via the CF api, however I seem to be getting a unhelpful error.
The error appears to indicate that it only supports a subdomain, which is dumb. I have tried both @ and the domain itself into the name field which still does not work. Adding a subdomain does appear to work fine.
Documenation link: Cloudflare API | Email Routing › Enable Email Routing
I also checked the DNS records, to see how they handled the name field, and I tried the same that is used in this doc: Cloudflare API | DNS › Records › Create DNS Record