Integrations
REST API
Send official email from any government backend with one authenticated HTTPS request.
The REST API is the most direct way to integrate Taifa Mail with a government system. One authenticated POST sends a message from a verified official domain. It works from any language or framework.
Use cases
- Send service-request updates, receipts, appointment reminders, and one-time passcodes.
- Trigger official mail from any language without an SDK.
- Queue and batch thousands of notices from your own workers.
Step 1: Create an API key
- In the dashboard, go to Developer -> API Keys.
- Create a key with the
emails:sendscope. - Copy the
tfm_k_...secret. It is shown only once.
Step 2: Send a message
Send a POST to https://govconnect.ke/v1/emails/ with a Bearer token.
Step 3: Follow delivery
The response includes an email id. Fetch its status, or wire a webhook to react to events.
The full request and response schema lives in the Emails API reference. Official SDKs are documented under SDKs.