---
title: "Search activity logs with filters + pagination"
method: GET
path: "/api/admin/activity-logs"
tags: ["Admin - Activity Log"]
---

# Search activity logs with filters + pagination

`GET /api/admin/activity-logs`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/admin/activity-logs`
- Auth: HTTP bearer

Returns a paginated list ordered by created_at DESC. All filters are optional and AND-combined. Page size is capped at 200 server-side.

## Query parameters

- `userId` number
- `activityType` string
- `targetType` string
- `targetId` string
- `actorRole` 'user' | 'admin' | 'coach' | 'system' | 'bridge' | 'anonymous'
- `success` string
- `from` string
- `to` string
- `page` number
- `limit` number

## Response `200`

- unknown

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
