---
title: "Get user activity log"
method: GET
path: "/users/{id}/activity"
tags: ["Users"]
---

# Get user activity log

`GET /users/{id}/activity`

## Request

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

Get the audit trail of all actions performed on or by a user

## Path parameters

- `id` string, uuid, required

## Query parameters

- `limit` integer

## Response `200`

Activity log retrieved successfully

- object
  - `success` boolean
  - `data` object[]
    - `id` string, uuid
    - `user_id` string, uuid
    - `performed_by` string, uuid, nullable
    - `performed_by_name` string
    - `action` 'user_created' | 'user_updated' | 'user_deactivated' | 'user_activated' | 'persona_changed' | 'invitation_sent' | 'invitation_resent' | 'invitation_accepted'
    - `description` string
    - `field_name` string, nullable
    - `old_value` string, nullable
    - `new_value` string, nullable
    - `changes` object, nullable
    - `created_at` string, date-time

## Other responses

- `401`: Unauthorized
- `404`: User 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)
