Endpoint

POST
https://shootmail.app/api/mail/schedule

Authorization

Send API key in the header, just the API key, nothing else. Here is how to generate API Key

header: {
    'Authorization': 'shootmail-api-key',
    'Content-Type': 'application/json'
}

Request

Request body should contain the following params

{
   "provider":"resend", // postmark, zoho, sendgrid, SES
   "apiKey": "re_QMfxxxxxxxxxxxxxxxxxxxxxxxxxxx",
   "templateId":"gktffznidphwrqx",
   "subject":"Regarding your Shootmail subscription",
   "preHeader": "Lifetime Access to Notion-like email editor & templates -  Shootmail", // optional
   "from":{
      "name":"Shootmail",
      "email":"noreply@mail.example.app"
   },
   "to":[
      {
         "email":"abc@example.com"
      }
   ],
   "data": {
     "name": "John" // custom variables - optional
   }
}

Response

Response will contain

Check response format section.