Docs
Email ›

Get email message raw

GET/v1/sandboxes/{id}/email/messages/{messageId}/raw

The message exactly as it was transmitted, attachments included.

RequestTypeScript
  1. import { Agental } from "agental-sdk";
  2. const agental = new Agental();
  3. const sandbox = await agental.sandboxes.get("sbx_2a9a47e50daec64a");
  4. const raw = await sandbox.email.raw("eml_9c41d0a7b2e65f38");
Answer200 OK

No JSON body.

The message's bytes.

Path

idrequired
string
e.g. "sbx_0123456789abcdef"
messageIdrequired
string
e.g. "eml_9c41d0a7b2e65f38"

Headers

Authorizationrequired
Bearer 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.