Skip to content

REST API and MCP

Everything the dashboard does for a newsletter is also an API action. The REST API runs the same checks as the dashboard: sender rules, suppression and list cleanup, audience resolution and pre-send validation.

For a task-based walkthrough, read AI email automation.

REST API

JSON in and out. Send your key as a bearer token.

https://stalkmail.com/api/v1

MCP server

Streamable HTTP. Every action is a tool, with the same permissions.

https://stalkmail.com/mcp

Quick start

  1. Create an API key on the API keys page. Keys are shown once.
  2. Send the key as a bearer token.
  3. Call an endpoint. This one returns the newsletter attached to your key and its subscriber counts.
curl https://stalkmail.com/api/v1/newsletter \
  -H "Authorization: Bearer $STALKMAIL_API_KEY"

What you can do

  • Newsletter2 endpoints
  • Overview1 endpoint
  • Campaigns10 endpoints
  • Subscribers8 endpoints
  • Tags5 endpoints
  • Custom fields5 endpoints
  • Segments5 endpoints
  • Authors5 endpoints
  • Sender2 endpoints
  • Domains6 endpoints
  • API keys4 endpoints
  • Media1 endpoint
  • Settings3 endpoints
  • Logs1 endpoint
  • Notifications6 endpoints
  • Public forms2 endpoints

Agent resources