This Python script sends a request to the Addy.io API to create and fetch a new alias email address. Addy.io is a service that provides alias email addresses for privacy and security.
Before using this script, make sure you have the following installed:
- Python 3.x
- Required Python libraries:
requests
,json
Simplt run the following cli command $ in terminal window:
pip install -r requirements.txt
-
Set API Token
You need to obtain an API token from Addy.io and replace the
api_token
variable with your token:api_token = "YOUR_ADDY.IO_API_TOKEN"
python3 create_email_alias_addyio.py
Sending request to addy.io-mail to create and fetch new alias
Successful API call!
---------------------
Created alias-email:
Alias local_part:: ixgipp8u
alias domain: ynoty2.anonaddy.me
full email: ixgipp8u@ynoty2.anonaddy.me