Skip to main content
GET
/
api
/
messaging
/
activity
/
recent
Recent Activity
curl --request GET \
  --url https://api.example.com/api/messaging/activity/recent/
{
  "count": 20,
  "activities": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "type": "campaign_created",
      "description": "Created campaign 'Holiday Promotion'",
      "user": {
        "id": 1,
        "email": "user@example.com",
        "name": "John Doe"
      },
      "timestamp": "2025-11-27T10:30:00Z"
    },
    {
      "id": "550e8400-e29b-41d4-a716-446655440001",
      "type": "sms_sent",
      "description": "Sent SMS to +255614853618",
      "user": {
        "id": 1,
        "email": "user@example.com",
        "name": "John Doe"
      },
      "timestamp": "2025-11-27T10:25:00Z"
    }
  ]
}
Get recent activity log.
limit
integer
Number of activities to return (default: 20)
Requires authentication. Include the access token in the Authorization header.

Success Response (200)

count
integer
Total number of activities returned
activities
array
Array of activity objects
activities[].id
string
Activity ID
activities[].type
string
Activity type
activities[].description
string
Activity description
activities[].user
object
User who performed the activity
activities[].timestamp
string
Activity timestamp (ISO 8601)
{
  "count": 20,
  "activities": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "type": "campaign_created",
      "description": "Created campaign 'Holiday Promotion'",
      "user": {
        "id": 1,
        "email": "user@example.com",
        "name": "John Doe"
      },
      "timestamp": "2025-11-27T10:30:00Z"
    },
    {
      "id": "550e8400-e29b-41d4-a716-446655440001",
      "type": "sms_sent",
      "description": "Sent SMS to +255614853618",
      "user": {
        "id": 1,
        "email": "user@example.com",
        "name": "John Doe"
      },
      "timestamp": "2025-11-27T10:25:00Z"
    }
  ]
}