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

List logs

GET/v1/logs

List the API requests made with your keys, newest first. Bodies are on Retrieve a log. Entries appear within seconds and are kept for your plan’s log retention.

Requires a full-access key.

Requests made with API keys are logged; the dashboard’s own calls are not. The X-Request-Id header of every response is the id of its log entry.

Query parameters

limitinteger
1–100. Default 20.
beforestring
A log id: return older entries.
afterstring
A log id: return newer entries.
statusstring
An exact status (422) or a class: 2xx, 4xx, 5xx.
methodstring
HTTP method.
pathstring
Path prefix, e.g. /v1/emails.
api_key_idstring
Only requests made with this key.

Errors

invalid_parameterHTTP 422
before or after is not a log id.
GET/v1/logs
curl 'https://zapsmtp.xyz/v1/logs?limit=20&status=4xx' \
  -H "Authorization: Bearer $ZAP_API_KEY"
Set ZAP_API_KEY in your environment.
Response 200 OK
{
  "object": "list",
  "has_more": true,
  "data": [
    {
      "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"
    }
  ]
}