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

Retrieve a log

GET/v1/logs/{id}

Retrieve one request with its request and response bodies. Bodies are capped at 16 KB; API keys, passwords and signing secrets are always replaced with [redacted].

Requires a full-access key.

Path parameters

idstringrequired
Log id (the X-Request-Id of the response).

Errors

not_foundHTTP 404
Unknown id, or past your plan’s log retention.
GET/v1/logs/{id}
curl 'https://zapsmtp.xyz/v1/logs/019a1f31-5b2e-7c9d-8e4f-1a2b3c4d5e6f' \
  -H "Authorization: Bearer $ZAP_API_KEY"
Set ZAP_API_KEY in your environment.
Response 200 OK
{
  "object": "log",
  "id": "019a1f31-5b2e-7c9d-8e4f-1a2b3c4d5e6f",
  "api_key_id": "019a1c11-2f3e-7a4b-9c5d-6e7f8a9b0c1d",
  "method": "POST",
  "path": "/v1/emails",
  "route": "/v1/emails",
  "status": 200,
  "duration_ms": 38,
  "ip": "203.0.113.7",
  "user_agent": "node-fetch/3.3",
  "created_at": "2026-10-22T15:04:10.902Z",
  "request_body": {
    "from": "Acme <hello@acme.com>",
    "to": [
      "delivered@simulator.zapsmtp.xyz"
    ],
    "subject": "Your receipt",
    "html": "<p>Thanks for your order.</p>"
  },
  "response_body": {
    "id": "019a1f2e-7c3b-7d41-9a52-0c4b8e6f1a23"
  }
}