---
title: "Get team activity logs."
method: GET
path: "/insights/teams/activity"
tags: ["Insights"]
---

# Get team activity logs.

`GET /insights/teams/activity`

## Request

- Base URL: `https://socialbu.com/api/v1`
- URL: `https://socialbu.com/api/v1/insights/teams/activity`
- Auth: HTTP bearer

Returns the latest activity log entries for all teams the user has access to. Entries include post publications, approvals, rejections, and member actions. Use the `limit` parameter to control how many entries are returned.

## Query parameters

- `limit` integer

## Response `200`

successful operation

- object
  - `data` object[]: An array of team activity log entries.
    - `id` integer: Unique identifier of the activity log entry.
    - `type` string: The type of activity (e.g., post_approved, post_created, added_user).
    - `title` string: Human-readable title for the activity.
    - `description` string: Detailed description of the activity.
    - `timestamp` string: Human-readable relative time (e.g., "2 hours ago").
    - `created_at` string, date-time: The exact timestamp when the activity occurred.

## Other responses

- `404`: Resource not found

---

[API](https://skmtc.dev/socialbu/apis/socialbu-api.md) · [All operations](https://skmtc.dev/socialbu/apis/socialbu-api/llms.txt) · [OpenAPI document](https://skmtc.dev/socialbu/apis/socialbu-api/revisions/841b3ab0f671?raw)
