Email Routing, API To Setup Addresses

Howdy,
Looking through the docs I don't see a progrmattic way to setup email addresses for email routing. I need to setup dynamic mailbox for workers to process each one. Is there no way to do this through an API? Logging inot the dashboard to setup the email is just silly. Am I missing something here? Here is my high level use case

pjoect_id@mydomain.com --> Routes to Email Worker --> email worker does some tasks on email, logs it to D1 and then is displayed in my web application.

I know email workers can handle everything I need but GETTING the mailbox configured does not see to be an easy API call or again am I missing something?
Was this page helpful?