---
title: "Audit log (MAX/Enterprise only)"
method: GET
path: "/api/v1/user/audit"
tags: ["User"]
---

# Audit log (MAX/Enterprise only)

`GET /api/v1/user/audit`

Returns 402 Payment Required if tier doesn't include audit_log. Retention 90d MAX, ilimitado Enterprise.

## Query parameters

- `limit` integer
- `offset` integer

## Response `200`

Audit entries

- UserAuditResponse
  - `count` integer, required
  - `entries` UserAuditEntry[], required
    - `id` integer
    - `action` string
    - `target_type` string, nullable
    - `target_id` string, nullable
    - `created_at` string

## Other responses

- `400` — Invalid request
- `401` — Authentication required (no active session)
- `402` — Upgrade required
- `422` — The query is lexically valid but outside a documented numeric or length bound, or uses an unsupported indexed combination.

## Changes

- **2026-07-26** `996f96a11758` — 2 warning, 5 info
  - for the `query` request parameter `limit`, the min was set to `1.00`
  - for the `query` request parameter `offset`, the min was set to `0.00`
  - api operation id `getUserAudit` was added
  - added the media type `application/json` for the response with the status `200`
  - …3 more

[Change history](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/changes/api/v1/user/audit/get.md)

---

[API](https://skmtc.dev/openmercantil/apis/openmercantil-public-api.md) · [All operations](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openmercantil/openmercantil-public-api/revisions/601ff6123c86/schema)
