Can we create custom email address from API?

What is the name of the domain?

no

What is the error number?

0

What is the issue you’re encountering

No issue, just feature suggestions

What steps have you taken to resolve the issue?

I need this feature often. Any time when I register to a new web service, I need a very fast way to add a new email address for it.
Is it possible to automate this creation?

Add a destination address to email routing? Such exists: Cloudflare API Documentation
You’ll need to verify it separately, when it sends you an email with the link to verify.
You can create routing rules too via the API:
Cloudflare API Documentation, “custom addresses” in the UI. If you’ve got a verified destination you can use it account-wide and use the API to create routing rules for it seamlessly.

2 Likes

The thing I am looking for is to create custom email addresses from API, not for destination addresses.

Curious why this action is not included in the API.

This is not my forte, but I believe you just have to create a routing rule for the custom email address: Cloudflare API Documentation

(From my non-developer pov, I’m thinking: all emails are getting to the Cloudflare. The routing rule simply says if the “to” field matches [email protected] then forward/drop/worker – which is exactly what those of us non-developers do in the dashboard.)

1 Like

I finally got it right. Created the routing rule from API.

The docs are at Cloudflare API Documentation, as you pointed out.

Thanks a lot.

1 Like

You are right. I was not familiar with how to use the API before. Now it is solved. Thanks.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.