Automatically add to your domain's Allow and Block lists via our API with this simple script.
This eliminates the need to login to admin.mailroute.net to add to Allow or Block for your domain.
Remember that you can always use our API for account management. You can perform any admin function either through our interface or directly through the API. Contact email@example.com with questions.
Receive API Credentials
You'll only need to do this step one time.
Login to your MailRoute account via the admin.mailroute.net control panel. Click your name at the top of the screen and choose "Settings". Under "API Access", next to "API Key" click the link marked “Show”.
Add the script via Terminal
Open Terminal and paste this code into the window:
curl -s --dump-header - -X POST -H 'Content-Type: application/json' \
-H 'Authorization: ApiKey <api_user>:<api_key>' \
Thanks for using MailRoute! We value your business.