---
title: "Get SMTP Send Logs"
description: "Returns recent SMTP send event logs from Redis. Admin-only."
---

`GET /api/organization/smtp/logs`

## Query Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `limit` | number | 100 | Max events to return (1-500) |

## Example (cURL)

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

## Response

```json
{
  "events": [
    {
      "type": "smtp_send",
      "timestamp": "2026-04-15T12:00:00.000Z",
      "to": "admin@deinkunde.com",
      "subject": "Website Down: deinkunde.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

