Inbound API
API reference for listing and managing inbox messages received by Taifa Mail.
Base URL: https://govconnect.ke/v1
All endpoints require authentication via API Key or JWT cookie.
These endpoints read and manage messages captured by the
Inbox. For a domain to receive mail, its MX
record must point to mx1.govconnect.ke.
Mail intake itself is handled by Taifa Mail's mail servers, not by an API call. There is no public "create inbound message" endpoint.
List inbox messages
Query parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
view | string | inbox | One of inbox, archived, snoozed. |
page | integer | 0 | Page number (zero-indexed). |
limit | integer | 50 | Results per page (1-200). |
Response:
Get a message
Returns the full message: headers, parsed text and HTML bodies, authentication results, spam score, attachment list, and routing log.
Response:
Manage a message
readmarks the message read (idempotent, setsread_atonce).archivehides the message from the inbox;unarchivereturns it.unsnoozeclears a snooze and returns the message to the inbox now.
Each returns a small JSON object with the affected timestamp, for example:
Snooze a message
Request body:
The until field is required and must be an ISO 8601 datetime in the
future. The message leaves the inbox and returns automatically once that
time passes.
Replay a message
Re-evaluates forward routing for the stored message against your current
forwarding rules. Useful after adding a rule.
Returns 422 if no active forward rule matches the recipient.
Download an attachment
Returns the raw attachment bytes with the original content type.
Errors
| Status | Cause |
|---|---|
400 Bad Request | Missing or invalid until value on snooze, or a snooze time in the past. |
401 Unauthorized | Missing or invalid authentication. |
404 Not Found | Message ID or attachment index does not exist. |
422 Unprocessable Entity | Replay found no active forward rule for the recipient. |