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

# Get audit logs for a specific account

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

## Request

- Base URL: `https://api.metacopier.io`
- URL: `https://api.metacopier.io/rest/api/v1/accounts/{accountId}/auditLogs`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/metacopier/apis/metacopier-api/docs/rest/api/v1/accounts/:accountId/auditLogs/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves audit logs for all API modifications made to a specific account.

## Path parameters

- `accountId` 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

## Changes

- **2026-01-16** `5446e0dea026`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/metacopier/apis/metacopier-api/changes/rest/api/v1/accounts/:accountId/auditLogs/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/2ac6d7461345?raw)
