Endpoint
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",
"apiKey": "re_QMfxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"templateId":"gktffznidphwrqx",
"subject":"Regarding your Shootmail subscription",
"preHeader": "Lifetime Access to Notion-like email editor & templates - Shootmail",
"from":{
"name":"Shootmail",
"email":"noreply@mail.example.app"
},
"to":[
{
"email":"abc@example.com"
}
],
"data": {
"name": "John"
}
}
Response
Response will contain
Check response format section.