---
title: "Get audit logs for a project"
method: GET
path: "/rest/api/v1/projects/{projectId}/auditLogs"
tags: ["Project API"]
---

# Get audit logs for a project

`GET /rest/api/v1/projects/{projectId}/auditLogs`

Retrieves audit logs for all API modifications made to the project. Only includes POST, PUT, and DELETE operations.

## Path parameters

- `projectId` string, uuid, required

## Query parameters

- `limit` integer
- `offset` integer
- `startDate` string
- `endDate` string

## Response `200`

OK

- AuditLogDTO[]
  - `accountAlias` string — Account alias/name for easier identification
  - `accountId` string, uuid — Account ID if the operation is specific to an account
  - `apiKeyAlias` string — API Key alias/name for easier identification
  - `apiKeyId` integer — API Key ID that made the request
  - `durationMs` integer — Duration of the operation in milliseconds
  - `endpoint` string — API endpoint that was called
  - `errorMessage` string — Error message if the operation failed
  - `id` string — Unique identifier for the audit log entry
  - `ipAddress` string — Client IP address
  - `method` string — HTTP method used
  - `projectId` string, uuid — Project ID associated with this operation
  - `projectName` string — Project name for easier identification
  - `queryString` string — Query parameters if any
  - `requestBody` string — Request body (sanitized, passwords removed)
  - `requestBodySize` integer — Size of request body in bytes
  - `requestHeaders` string — Request headers as JSON string (sensitive headers removed)
  - `responseBody` string — Response body (only for error responses)
  - `responseBodySize` integer — Size of response body in bytes
  - `serverHost` string — Server hostname that processed the request
  - `statusCode` integer — HTTP status code of the response
  - `success` boolean — Whether the operation was successful (2xx status)
  - `timestamp` string, date-time — Timestamp when the operation was performed
  - `userAgent` string — User agent string from the client

---

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