Taifa MailTaifa Mail Docs
Integrations

n8n

Call Taifa Mail from any n8n workflow with the built-in HTTP Request node, ideal for self-hosted automation.

n8n is a self-hosted, privacy-first automation tool. Its built-in HTTP Request node can call the Taifa Mail API from any workflow today.

Use cases

  • Send mail from a self-hosted, privacy-first automation.
  • Chain Taifa Mail sends after database or API steps.
  • React to Taifa Mail webhooks inside an n8n flow.

Step 1: Add an HTTP Request node

Add an HTTP Request node to your workflow and set:

FieldValue
MethodPOST
URLhttps://govconnect.ke/v1/emails/
AuthenticationHeader Auth (or Generic Credential)

Step 2: Add auth and body

  1. Add a header Authorization: Bearer tfm_k_live_....
  2. Set the body to JSON:
{
  "from_": { "email": "hello@yourbusiness.co.ke" },
  "to": [{ "email": "={{ $json.email }}" }],
  "subject": "Welcome",
  "html": "=<p>Karibu, {{ $json.name }}.</p>"
}

Step 3: Connect upstream nodes

Wire the node after your trigger or data nodes, map their fields into the body expressions, and execute the workflow.

Store the API key as an n8n credential rather than inline, so it is not exposed in the workflow JSON.

Native integration coming soon

A dedicated Taifa Mail n8n node, so you skip the raw HTTP setup, is on the roadmap.

Next steps

On this page