API reference

API reference

A RESTful JSON API over HTTPS. The base URL is https://api.mailstack.voostack.com. The send API is authenticated with a Bearer API key; dashboard resources use a user token and an organization header. Pick a resource to see every endpoint with request/response JSON and code samples in cURL, Node, .NET, Go, and Flutter.

Authentication

The send API (/v1/emails) authenticates with an API key — it resolves to your organization automatically:

Authorization: Bearer ms_live_xxxxxxxxxxxxxxxxxxxx

The dashboard resources (domains, senders, templates, API keys, webhooks, billing, messages) authenticate with a user token plus your organization id:

Authorization: Bearer <token>
X-MailStack-Org: org_xxxxxxxxxxxx

Resources

Errors & status codes

  • 200 OK — a read/list/verify succeeded.
  • 202 Accepted — a send was queued.
  • 400 Bad Request — validation failed (e.g. unverified from-domain).
  • 401 Unauthorized — missing or invalid credentials.
  • 402 Payment Required — free tier exhausted with no payment method, or spend cap reached.
  • 403 Forbidden — missing scope or no active organization.
  • 404 Not Found — resource doesn't exist in your org.
  • 409 Conflict — duplicate (e.g. domain or key name already exists).

Error responses are JSON with an error message and a traceId. New to the API? Start with the quickstart or pick an official SDK.