Skip to content

HTTP API

The HTTP server hosts both the Web UI and JSON API on the configured HTTP host and port.

GET /api/health

Returns:

{ "status": "ok" }
GET /api/connection

Returns the SMTP connection settings currently used by the server.

GET /api/events

Opens a Server-Sent Events stream for mailbox updates.

GET /api/messages

Supported query parameters:

Parameter Description
q Search text.
hasAttachments Filter by attachment presence.
receivedAfter Filter messages received after a timestamp.
receivedBefore Filter messages received before a timestamp.
DELETE /api/messages

Deletes all retained messages.

GET /api/messages/:id

Returns message details for a captured message.

DELETE /api/messages/:id

Deletes a captured message.

GET /api/messages/:id/attachments/:attachmentId

Returns the stored attachment content with attachment headers.