Skip to content
This site documents the main branch, which may hold changes not yet released. Latest release: v0.3.0 (changelog).

Overview

Mailsink, a self-hosted email sink: native, Resend and Brevo compatible ingestion, Capture API, Admin API. Generated from the Zod contracts of @mailsink/contracts. Errors use { error: { code, message, details? }, requestId } (Resend and Brevo routes answer in their provider shape); statuses follow D40 of the architecture decision log.

Information

  • License: MIT
  • OpenAPI version: 3.1.0

Admin key of the instance (MAILSINK_ADMIN_KEY). Without it the Admin API answers 401 (D43).

Security scheme type: http

Connection key (msk_…). Ingestion routes require one of the right kind: any kind on /v1, a resend connection on /emails, a brevo connection on /v3.

Security scheme type: http

Bearer format: msk_

Workspace key (mskw_…): Capture API and MCP of one workspace (D12).

Security scheme type: http

Bearer format: mskw_

Brevo style credential: a brevo connection key (msk_…) in api-key.

Security scheme type: apiKey

Header parameter name: api-key

Workspace id or slug, required with the Admin key on workspace scoped routes (400 when missing).

Security scheme type: apiKey

Header parameter name: X-Mailsink-Workspace