Uptimeify Docs
Organization smtp

Get SMTP Send Logs

Returns recent SMTP send event logs from Redis. Admin-only.

GET /api/organization/smtp/logs

Query Parameters

ParameterTypeDefaultDescription
limitnumber100Max events to return (1–500)

Example (cURL)

curl -X GET "$BASE_URL/api/organization/smtp/logs?limit=50" \
  -H "Cookie: $SESSION_COOKIE" \
  -H "Accept: application/json"

Response

{
  "events": [
    {
      "type": "smtp_send",
      "timestamp": "2026-04-15T12:00:00.000Z",
      "to": "admin@example.com",
      "subject": "Website Down: example.com",
      "status": "sent"
    }
  ]
}

Returns { "events": [] } if no logs exist or on Redis errors (fails open).

Common errors

  • 401 Unauthorized when not authenticated
  • 403 Forbidden when not an admin

On this page