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 support@mailroute.net with questions.
Step 1
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”.
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 ' { "email_account":"/api/v1/email_account/z4@usercase.com/", "wb" : "B", "email" : "block.me" }' \ https://admin.mailroute.net/api/v1/wblist/
This query will add block.me domain to z4@usercase.com’s block list.
All admin functions can be performed either through our interface or directly through the API. Contact support@mailroute.net for more information or view our API libraries at github.com/mailroute.
Thanks for using MailRoute! We value your business.
888.485.7726
Comments
0 comments
Please sign in to leave a comment.