Allow / Block Script

Automatically add to your domain's Allow and Block lists via our API with this simple script.

This eliminates the need to login to 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 with questions. 


Step 1

Receive API Credentials

You'll only need to do this step one time.

Login to your MailRoute account via the 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”.


Step 2

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>' \
    --data ' {
	  "wb" : "B",
	  "email" : ""
    }' \

This query will add domain to’s block list.


All admin functions can be performed either through our interface or directly through the API. Contact for more information or view our API libraries at


Thanks for using MailRoute! We value your business.



Have more questions? Submit a request


Please sign in to leave a comment.