API for creating custom email addresses?


I looked through the API docs, but I didn’t see a way to create custom email addresses for a domain using the API.

  • Is it possible and I just missed it?
  • Or is this planned for future API integration?

Thank you!

I don’t think you missed it. You can try and figure out the API by sniffing the dashboard.

To verify an email address use something like

curl -s -X POST 'https://api.cloudflare.com/client/v4/accounts/:accountid/email/routing/addresses' -H "X-Auth-Email: $auth_email" -H "X-Auth-Key: $auth_key" -H "Content-Type: application/json" --data '{"email":"[email protected]"}'

The forwarding rule I have not gotten to work, but have not looked at it long enough.

I would expect this before the beta ends, but have no insider knowledge. Essentially everything is exposed via the API, so I would expect that here. I imagine they need to ensure it cannot easily be abused.