Skip to main content

API Reference

Mailtarget exposes HTTP APIs for sending email, managing account resources, reading analytics, and operating email infrastructure. Requests use JSON over HTTPS and authenticate with an API key in the Authorization header.

Base URLs

SurfaceBase URLUse for
Transmission APIhttps://transmission.mailtarget.co/v1Sending email through /layang/transmissions.
Dashboard APIhttps://apiconfig.mailtarget.co/v1API keys, sending domains, templates, sub-accounts, permissions, and account data.
Analytics APIhttps://apiconfig.mailtarget.co/v1Summary analytics and transmission event lookups.

Start here

  1. Create an API key with the smallest permission scope your workload needs.
  2. Store the key in a server-side secret store.
  3. Send one message through the API Quickstart.
  4. Use Webhooks to reconcile delivery events.
  5. Add retry handling from Errors and Rate Limits.

Common references

Generated operation reference

The generated reference pages below are produced from openapi.yaml. If a generated page title or field description looks wrong, fix the source OpenAPI description first, then run npm run gen:api.