GET /received-emails/{email_id}
Get a received email
Key carrying mail:send AND job:read. Served only when inbound is open to the account (404 not_found otherwise). Text, HTML, headers, attachments and forwards.
API key (Bearer), on the public API endpoint.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
email_id | path | string · required |
Responses
| Status | Description | Body |
|---|---|---|
200 | Received email | object |
404 | Not found | Error |
401 | Key missing or invalid | Error |
Examples
curl
curl -X GET "$GALON_API_BASE/received-emails/<email_id>" \
-H "Authorization: Bearer $GALON_API_KEY"Node.js (SDK)
import { Galon } from "galon";
const galon = new Galon(process.env.GALON_API_KEY);
const result = await galon.receivedEmails.get("<id>");Python (SDK)
from galon import Galon
galon = Galon() # reads GALON_API_KEY
result = galon.received_emails.get("<id>")