Account API
Get audit logs for a specific account paginated
Changed onServer-side paginated audit logs including the total count of matching entries.
get/rest/api/v1/accounts/{accountId}/auditLogs/page
Request
- Base URLhttps://api.metacopier.io
- AuthAPI key in header X-API-KEY
Path parameters
accountIdstring uuid required
Query parameters
limitinteger
Page size (default 25, max 1000)
offsetinteger
Number of audit logs to skip
startDatestring
Start date filter (ISO-8601 format)
endDatestring
End date filter (ISO-8601 format)
methodstring[]
Only these HTTP methods (repeat the parameter or separate with commas)
statusstring[]
Only these status groups: success, redirect, client-error, server-error (repeat the parameter or separate with commas)
searchstring
Case-insensitive search in endpoint, method, API key, account alias, IP address, error message, query string and request / response body
sortBystring
Sort field: timestamp, method, endpoint, statusCode, apiKeyAlias, durationMs or ipAddress (default timestamp)
sortDirectionstring
Sort direction: asc or desc (default desc)
Response
OK
Example response
{
"items": [
{
"accountAlias": "Main Trading Account",
"accountId": "123e4567-e89b-12d3-a456-426614174001",
"apiKeyAlias": "Production API Key",
"apiKeyId": 12345,
"durationMs": 125,
"endpoint": "/rest/api/v1/projects/123e4567-e89b-12d3-a456-426614174000/accounts",
"errorMessage": "Resource not found",
"id": "507f1f77bcf86cd799439011",
"ipAddress": "192.168.1.100",
"method": "POST",
"projectId": "123e4567-e89b-12d3-a456-426614174000",
"projectName": "My Trading Project",
"queryString": "limit=10&offset=0",
"requestBody": "{\"name\":\"My Account\"}",
"requestBodySize": 256,
"requestHeaders": "{\"Content-Type\":\"application/json\"}",
"responseBody": "{\"error\":\"Not Found\"}",
"responseBodySize": 512,
"serverHost": "metacopier-node-1",
"statusCode": 200,
"success": true,
"timestamp": "2025-11-09T10:30:00Z",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
}
],
"limit": 25,
"totalCount": 1250
}Changes
- info
endpoint added
- info