API Reference‎ > ‎Setup Service‎ > ‎

Email

REST API Method: email

Manages FROM header addresses used for this account.  

 

URL:

https://api.mailmonitorapp.com/mma/setup/email


HTTP Method(s):

GET, POST, DELETE


GET


Returns all FROM header addresses for this account.


Parameters:

n/a

Example:

https://api.mailmonitorapp.com/mma/setup/email


Response

A JSON array of From Address objects.  Each From Address has an ID and an Email field.


          Example response:

[ { "id":123, "email":"from1@example1.com" },

  { "id":456, "email":"from2@example2.com" },

  ... ]


POST


Creates a new FROM header address for this account.


POST Body:

fromAddress=<address>

Example:

POST to https://api.mailmonitorapp.com/mma/setup/email

POST BODY: fromAddress=from3%40example3.com

('from3@example3.com' after URL encoding)


Response:

A JSON From Address object, consisting of an ID and an Email field.


          Example response:

{ "id":789, "email":"from3@example3.com" }


DELETE

Removes a FROM header address from this account.

URL: https://api.mailmonitorapp.com/mma/setup/email/${fromid}

Parameters:
    fromid -- id of a From Address object

Example:
    DELETE https://api.mailmonitorapp.com/mma/setup/email/789

Response:
HTTP Error Code and message

    Example Response:
    
[HTTP Status Code 200]
DELETED EMAIL 789
Comments