DEV Community

Dhiraj Chatpar
Dhiraj Chatpar

Posted on

PostMTA REST API: Complete Developer Guide

PostMTA REST API Reference

Base URL

https://api.postmta.com/v1
Enter fullscreen mode Exit fullscreen mode

Authentication

curl -H "Authorization: Bearer YOUR_API_KEY" \
     https://api.postmta.com/v1/status
Enter fullscreen mode Exit fullscreen mode

Send Email

POST /v1/send
{
  "from": "marketing@domain.com",
  "to": ["user@example.com"],
  "subject": "Hello",
  "html": "<p>Your message</p>"
}
Enter fullscreen mode Exit fullscreen mode

Endpoints

  • GET /v1/messages/{id}/status
  • GET /v1/suppressions
  • POST /v1/suppressions/remove
  • POST /v1/webhooks

API Docs →

Top comments (0)