Email ›
Get email message raw
GET
/v1/sandboxes/{id}/email/messages/{messageId}/rawThe message exactly as it was transmitted, attachments included.
RequestTypeScript
- import { Agental } from "agental-sdk";
- const agental = new Agental();
- const sandbox = await agental.sandboxes.get("sbx_2a9a47e50daec64a");
- const raw = await sandbox.email.raw("eml_9c41d0a7b2e65f38");
Answer200 OK
No JSON body.
The message's bytes.
Path
idrequiredstring | e.g. "sbx_0123456789abcdef" |
messageIdrequiredstring | e.g. "eml_9c41d0a7b2e65f38" |
Headers
AuthorizationrequiredBearer key | An API key that may make this call. |
Returns
200 The message's bytes.
Errors and other answers
| 404 | Not found. |
Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.