Activity Log API
API reference for reading the workspace activity log in Taifa Mail.
Base URL: https://govconnect.ke/v1
All endpoints require authentication via API Key or JWT cookie. API keys use the tfm_k_ prefix.
See the Activity log guide for concepts.
The activity log is an append-only feed of meaningful workspace actions (domain changes, sends, team and billing events, security events). It captures deletions and other non-creation events, not just a snapshot of what currently exists.
List activity log entries
Returns a time-sorted feed of workspace activity for the authenticated user, newest first.
Query parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
range | string | 30d | Time window: 24h, 7d, 30d, or 90d. |
category | string | -- | Filter by category (case-insensitive): Security, Domain, Send, Team, Billing. |
limit | integer | 100 | Maximum entries to return (1-500). |
Response:
| Field | Type | Description |
|---|---|---|
id | string | Entry ID. |
actor | string | Email address of the user who performed the action. |
action | string | Dotted action name, e.g. domain.verified, broadcast.sent. |
target_type | string | Human-readable type of the affected resource. |
target_name | string | Name or label of the affected resource. |
target_id | string | null | ID of the affected resource, when available. |
category | string | One of Security, Domain, Send, Team, Billing. |
meta | object | Structured context for the entry. Defaults to an empty object. |
created_at | string (ISO 8601) | When the action occurred. |
total is the count of entries within the selected range (and
category, when given); it is not affected by limit.
The meta object
Every entry carries a meta object with structured context about the
action. For most actions it is empty ({}).
Actions performed by an AI assistant or automation through the Model
Context Protocol (MCP) are tagged in meta:
meta.viais set to"mcp"for MCP-driven entries.meta.clientidentifies the MCP client that performed the action.
An entry without meta.via was performed directly through the dashboard
or API.
Errors
| Status | Cause |
|---|---|
401 Unauthorized | Missing or invalid authentication. |
422 Unprocessable Entity | Invalid query parameter, e.g. limit out of range. |