---
title: "Get task activity log"
method: GET
path: "/cohorts/{cohortId}/tasks/{id}/activity"
tags: ["Tasks"]
---

# Get task activity log

`GET /cohorts/{cohortId}/tasks/{id}/activity`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/tasks/{id}/activity`
- Auth: HTTP bearer

Get the activity log for a task showing all changes

## Path parameters

- `cohortId` string, uuid, required
- `id` string, uuid, required

## Query parameters

- `limit` integer

## Response `200`

Activity log retrieved successfully

- object
  - `success` boolean
  - `data` TaskActivityLog[]
    - `id` string, uuid
    - `task_id` string, uuid
    - `user_id` string, uuid, nullable
    - `action_type` 'created' | 'updated' | 'status_changed' | 'assignee_changed' | 'due_date_changed' | 'comment_added' | 'deleted'
    - `field_name` string, nullable
    - `old_value` string, nullable
    - `new_value` string, nullable
    - `user_name` string, nullable
    - `user_email` string, nullable
    - `created_at` string, date-time

## Other responses

- `401`: Unauthorized
- `404`: Task or cohort not found

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
