---
title: "get recent audit logs"
method: GET
path: "/api/v1/audit/logs"
tags: ["api/v1/audit"]
---

# get recent audit logs

`GET /api/v1/audit/logs`

#### Controller: 

`github.com/raghavyuva/nixopus-api/internal/features/audit/controller.(*AuditController).GetRecentAuditLogs`

#### Middlewares:

- `github.com/go-fuego/fuego.defaultLogger.middleware`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).SetupRoutes.(*Router).setupAuthentication.func2`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).applyMiddleware.func1`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).applyMiddleware.func2`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).applyMiddleware.func3`

---

## Headers

- `Accept` string

## Response `200`

OK

- GetActivitiesResponse — GetActivitiesResponse schema
  - `data` object
    - `activities` object[]
      - `action` string
      - `action_color` string
      - `actor` string
      - `id` string
      - `message` string
      - `metadata` object, nullable
      - `resource` string
      - `resource_id` string
      - `timestamp` string
    - `pagination` object
      - `current_page` integer
      - `has_next` boolean
      - `has_prev` boolean
      - `page_size` integer
      - `total_count` integer
      - `total_pages` integer
  - `message` string, nullable
  - `status` string

## Other responses

- `400` — Bad Request _(validation or deserialization error)_
- `500` — Internal Server Error _(panics)_
- `default`

## Changes

- **2026-02-27** `93bf2b2f361d` — 13 breaking
  - the response property `data/activities/items/metadata` became nullable for the status `200` (media type: application/json)
  - the response property `data/activities/items/metadata` became nullable for the status `200` (media type: application/xml)
  - the response property `errors/items/` became nullable for the status `400` (media type: application/json)
  - the response property `errors/items/` became nullable for the status `400` (media type: application/xml)
  - …9 more

[Change history](https://skmtc.dev/nixopus/apis/openapi/changes/api/v1/audit/logs/get.md)

---

[API](https://skmtc.dev/nixopus/apis/openapi.md) · [All operations](https://skmtc.dev/nixopus/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nixopus/openapi/revisions/93bf2b2f361d/schema)
