emails retrieve
GET {{baseUrl}}/emails/:id
Returns a MarketingEmail
object with the given id
.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
include_remote_data | boolean | Whether to include the original data Merge fetched from the third-party to produce these models. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Account-Token | string | (Required) Token identifying the end user. | |
Accept | string |
RESPONSES
status: OK
{"campaigns":["urn:uuid:f4dcae45-a0a9-eee3-0f02-d4c931bcc2d5","2a0c14ca-9ecc-1c46-cd20-c5ed106deefc"],"name":"Welcome Email","subject":"Welcome onboard!","body":"Welcome onboard! Stay connected and find out more.","html_body":"\u003cb\u003eWelcome onboard\u003c/b\u003e! Stay connected and find out more.","from_name":"Merge","from_email":"hello@merge.dev","preview":"Welcome onboard!","reply_to":"hello@merge.dev","remote_created_at":"2022-12-23T00:00:00Z","remote_updated_at":"2022-12-23T00:00:00Z","status":"SENT","send_date":"2022-12-25T00:00:00Z","template":"urn:uuid:ce6bbc27-99bf-edc9-6239-d877e5f3a049","id":"a0cc509c-4c19-15af-f2d5-a003a0897548","remote_id":"15"}