curl -X POST "https://helstify.com/api/v1/businesses/60/mail/mailboxes/31/send" \
-H "Authorization: Bearer $HELSTIFY_KEY" \
-H "Content-Type: application/json" \
-d '{"to":"sam@example.com","subject":"Re: Wholesale order","body":"Yes, we can ship on Thursday."}'
const res = await fetch("https://helstify.com/api/v1/businesses/60/mail/mailboxes/31/send", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HELSTIFY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"to": "sam@example.com",
"subject": "Re: Wholesale order",
"body": "Yes, we can ship on Thursday."
}),
});
const data = await res.json();
import os, requests
res = requests.post(
"https://helstify.com/api/v1/businesses/60/mail/mailboxes/31/send",
headers={"Authorization": f"Bearer {os.environ['HELSTIFY_KEY']}"},
json={
"to": "sam@example.com",
"subject": "Re: Wholesale order",
"body": "Yes, we can ship on Thursday."
},
)
print(res.json())