---
title: "get all  audit logs ordered by time (Auth policies: audit:view)"
method: GET
path: "/api/auditlogs"
tags: ["AuditLog"]
---

# get all  audit logs ordered by time (Auth policies: audit:view)

`GET /api/auditlogs`

## Query parameters

- `PageNumber` integer
- `PageSize` integer
- `userName` string
- `orderByTimeDescending` boolean

## Response `200`

OK

- REvent[]
  - `id` string, uuid — Id
  - `eventType` string, nullable — Event Type
  - `startDate` string, date-time — Start Date
  - `endDate` string, date-time, nullable — Last Updated Date
  - `duration` integer — Duration
  - `userName` string, nullable — User Name
  - `ipAddress` string, nullable — IP Address
  - `responseStatusCode` integer — Response Code
  - `requestUrl` string, nullable — Requset Url
  - `jsonData` string, nullable — Jason Data

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/ganjoor/apis/rmuseum-api.md) · [All operations](https://skmtc.net/ganjoor/apis/rmuseum-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ganjoor/rmuseum-api/versions/bb8e104d36d2/schema)
