---
title: "List audit log entries for this workspace"
method: GET
path: "/api/workspaces/{workspaceId}/audit-logs"
tags: ["Audit Log"]
---

# List audit log entries for this workspace

`GET /api/workspaces/{workspaceId}/audit-logs`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/workspaces/{workspaceId}/audit-logs`
- Auth: API key in cookie `hiveship_access`

Paginated, filterable. Reuses the admin filter shape but forces `workspaceId` to the caller's workspace — any `workspaceId` filter passed in the query is overridden server-side. Requires OWNER or ADMIN role; MEMBERs get 403.

## Path parameters

- `workspaceId` string, required

## Response `200`

Paginated audit-log rows for this workspace. Rows are projected from `AdminAuditLogDto` with `impersonatedBy`, `user.isSuperAdmin`/`adminRole`, `ipAddress`, `userAgent`, and `metadata.superAdminBypass` stripped — see `projectForWorkspace` for the full redaction list.

- object
  - `success` boolean, required
  - `data` object, required
    - `items` object[], required
      - `id` string, cuid, required
      - `action` string, required
      - `entity` string, required
      - `entityId` string, nullable, required
      - `metadata` object, nullable, required
      - `httpMethod` string, nullable, required
      - `httpPath` string, nullable, required
      - `httpStatus` integer, nullable, required
      - `user` object, nullable, required
        - `id` string, required
        - `name` string, required
        - `email` string, required
        - `workspaceRole` 'OWNER' | 'ADMIN' | 'MEMBER' | 'VIEWER', nullable, required
      - `agent` object, nullable, required
        - `id` string, required
        - `name` string, required
        - `provider` string, required
        - `workspaceId` string, required
      - `mcpTool` string, nullable, required
      - `workspace` object, nullable, required
        - `id` string, required
        - `name` string, required
      - `project` object, nullable, required
        - `id` string, required
        - `name` string, required
        - `prefix` string, required
      - `createdAt` string, date-time, required
    - `meta` object, required
      - `page` integer, required
      - `limit` integer, required
      - `total` integer, required
      - `totalPages` integer, required
      - `hasNext` boolean, required
      - `hasPrev` boolean, required

## Other responses

- `403`: Caller is not an OWNER or ADMIN of this workspace

---

[API](https://skmtc.dev/hiveship/apis/hiveship-api.md) · [All operations](https://skmtc.dev/hiveship/apis/hiveship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hiveship/apis/hiveship-api/revisions/73d3e26544e4?raw)
