Runs examples for real against your account. Test keys only; kept in this tab, never stored on our side. Get a key
ZapSMTP / Docs / Emails

Retrieve email content

GET/v1/emails/{id}/content

Retrieve the archived content of a sent email.

Requires a full-access key.

source is api or smtp; tags is the URL-encoded tag string. Content is kept for your plan’s log retention.

Path parameters

idstringrequired
Email id

Errors

restricted_api_keyHTTP 403
not_foundHTTP 404
content not available (past your plan's log retention)
GET/v1/emails/{id}/content
curl 'https://zapsmtp.xyz/v1/emails/019a1f2e-7c3b-7d41-9a52-0c4b8e6f1a23/content' \
  -H "Authorization: Bearer $ZAP_API_KEY"
Set ZAP_API_KEY in your environment.
Response 200 OK
{
  "source": "api",
  "from": "Acme <hello@acme.com>",
  "to": [
    "jane@example.org"
  ],
  "cc": [],
  "bcc": [],
  "subject": "Your receipt",
  "html": "<p>Thanks for your order!</p>",
  "text": "Thanks for your order!",
  "raw": "",
  "tags": "category=receipt",
  "size": 2481
}