---
title: "GetUserLogs"
method: GET
path: "/api/admin/audit/user/{user_id}"
tags: ["Admin"]
---

# GetUserLogs

`GET /api/admin/audit/user/{user_id}`

## Path parameters

- `user_id` string, uuid, required

## Query parameters

- `ids` string[], nullable
- `createdBefore` string, date-time, nullable
- `createdAfter` string, date-time, nullable
- `searchString` string, nullable
- `searchIgnoreCase` boolean, nullable
- `currentPage` integer
- `pageSize` integer
- `orderBy` string, nullable
- `sortOrder` 'asc' | 'desc' | 'null', nullable
- `targetTypeIn` string[], nullable
- `targetIdIn` string[], nullable
- `actorIdIn` string[], nullable
- `actionIn` string[], nullable
- `action` string, nullable
- `end_date` string, date-time, nullable

## Response `200`

Request fulfilled, document follows

- object
  - `items` AuditLogEntry[]
    - `action` string, required
    - `actorEmail` string, nullable
    - `actorId` string, uuid, nullable
    - `createdAt` string, date-time, required
    - `details` object, nullable
    - `id` string, uuid, required
    - `ipAddress` string, nullable
    - `targetId` string, nullable
    - `targetLabel` string, nullable
    - `targetType` string, nullable
    - `userAgent` string, nullable
  - `limit` integer — Maximal number of items to send.
  - `offset` integer — Offset from the beginning of the query.
  - `total` integer — Total number of items.

## Other responses

- `400` — Bad request syntax or unsupported method

---

[API](https://skmtc.dev/litestar-org/apis/litestar-fullstack-template.md) · [All operations](https://skmtc.dev/litestar-org/apis/litestar-fullstack-template/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/litestar-org/litestar-fullstack-template/revisions/e5e7606282ec/schema)
