The SentFast API sends emails you have already built in the dashboard. Your backend does not carry subjects, HTML or copy: it sends a template id, a recipient and the values of the dynamic variables.
Everything runs against one endpoint:
POST https://sentfa.st/api/v1/email/send
You need three things:
{{variables}} defined. Its id looks like em_a1b2c3d4.curl -X POST "https://sentfa.st/api/v1/email/send" \
-H "Content-Type: application/json" \
-H "x-api-key: $SENTFAST_API_KEY" \
-d '{
"id": "em_a1b2c3d4",
"to": "customer@example.com",
"params": { "user_name": "Alex" }
}'
A successful call returns:
{ "ok": true, "message": "Email \"em_a1b2c3d4\" queued/sent to customer@example.com" }
From then on, changing the wording of that email is an edit in the dashboard. Your backend keeps sending the same id.
.md appended, for example /docs/send-email.md.