- Retrieve an email message
Retrieves an email message with a specified ID.
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/email-messages/{id}
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/email-messages/{id}
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/email-messages/{id}
- SecretApiKey
- JWT
curl -i -X GET \
'https://www.rebilly.com/_mock/catalog/all/email-messages/{id}' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE'Email message retrieved.
ID of the email message.
Metadata associated with the email message.
{ "eventType": "subscription-canceled" }
ID of the SMTP or Email Service Provider (ESP) credential.
Email address of the sender.
List of email addresses to which the email message is sent.
[ "to-example@rebilly.com" ]
List of CC email addresses to which the email message is sent.
[ "cc-example@rebilly.com" ]
List of BCC email addresses to which the email message is sent.
[ "cc-example@rebilly.com" ]
Subject of the email message.
Status code returned by a mail service after an attempt to send email.
Body of response returned by a mail service after an attempt to send email.
Date and time when the resource is created. This value is set automatically when the resource is created.
Date and time when the resource is updated. This value is set automatically when the resource is updated.
{ "id": "mail_msg_0YVCNR8ZRBCVMAX28DP4XRFZVA", "status": "draft", "metadata": { "eventType": "subscription-canceled" }, "credentialHash": "b120c2ca-6c2b-4690-9dff-3b0d87852dc7", "from": "from-example@rebilly.com", "to": [ "to-example@rebilly.com" ], "cc": [ "cc-example@rebilly.com" ], "bcc": [ "cc-example@rebilly.com" ], "subject": "Welcome dear customer!", "text": "Email message text body", "html": "<p>Email message html body</p>", "attachments": [ { … } ], "responseCode": 250, "responseBody": "string", "initiatedTime": "2019-08-24T14:15:22Z", "sentTime": "2019-08-24T14:15:22Z", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ { … } ] }