Get an Email

Get the details about a sent e-mail.

HTTP GET

GET /api/2013-12-01/Email/[Email ID]
Returns information for the given Email ID.

Example Request

$ curl -G https://[Site Name].readyop.com/api/2013-12-01/Email/[Email ID] \
-u "[API Account ID]:[API Token]"

Request Result


{
    "code": 0,
    "status": 200,
    "detail": "Success",
    "timestamp": "2015-09-21T16:08:10+00:00",
    "email": {
        "Email ID": 941,
        "Agency ID": 54,
        "Sent": 1574122365,
        "Subject": "Test email",
        "Body": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">\n<html><body>This is a test e-mail.</body></html>\n",
        "From": {
            "User ID": 1,
            "Name": "John Doe",
            "Email": "support@readyop.com"
        },
        "Recipients": [
            {
                "Recipient ID": 16177,
                "Contact ID": 5211755,
                "Name": "John Doe",
                "Status": "Delivered",
                "Email": "john@readyop.com"
            }
        ]
    }
}