GET emails/{id}

Overview

GET /v2/emails/{id} returns the templateId and subscription division associated with the message id.

Resource URI

 https://api.yesmail.com/v2/emails/{id}

HTTP Return Codes

Code

Description

200 Ok

The request was processed successfully.

401 Unauthorized

The request requires user authentication.  Invalid Api-User and/or Api-Key header value.

404 Not Found

The server has not found anything matching the request resource. For instance, the “id” does not exist.

Response Payload: 
{
    "messageId": "236134688048",                ;messageId from URI
    "recipient": {
        "id": "jsmith@zzz.com",
        "email": "jsmith@zzz.com"
    },
    "content": {
        "templateId": "65934006"
    },
    "subscription": "Division1"
}