---
title: "Get audit logs for a specific account paginated"
method: GET
path: "/rest/api/v1/accounts/{accountId}/auditLogs/page"
tags: ["Account API"]
---

# Get audit logs for a specific account paginated

`GET /rest/api/v1/accounts/{accountId}/auditLogs/page`

## Request

- Base URL: `https://api.metacopier.io`
- URL: `https://api.metacopier.io/rest/api/v1/accounts/{accountId}/auditLogs/page`
- Auth: API key in header `X-API-KEY`

Server-side paginated audit logs including the total count of matching entries.

## Path parameters

- `accountId` string, uuid, required

## Query parameters

- `limit` integer
- `offset` integer
- `startDate` string
- `endDate` string
- `method` string[]
- `status` string[]
- `search` string
- `sortBy` string
- `sortDirection` string

## Response `200`

OK

- AuditLogPageDTO: One page of audit logs
  - `items` AuditLogDTO[]: Audit logs of the requested page
    - `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
  - `limit` integer: Maximum number of audit logs per page
  - `offset` integer: Offset of the first returned audit log
  - `totalCount` integer: Total number of audit logs matching the filters

## Changes

- **2026-11-16** `59a18e2d8da1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/metacopier/apis/metacopier-api/changes/rest/api/v1/accounts/:accountId/auditLogs/page/get.md)

---

[API](https://skmtc.dev/metacopier/apis/metacopier-api.md) - [All operations](https://skmtc.dev/metacopier/apis/metacopier-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metacopier/apis/metacopier-api/revisions/59a18e2d8da1?raw)
