latestOpenAPI 3.0.12026-08-16171142480.4 KB

ff1699330afa

Account API

Get audit logs for a specific account

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

get/rest/api/v1/accounts/{accountId}/auditLogs

Path parameters

accountIdstring uuid required

Query parameters

limitinteger

Maximum number of logs to return

offsetinteger

Number of logs to skip for pagination

startDatestring

Start date filter (ISO-8601 format)

endDatestring

End date filter (ISO-8601 format)

Response

OK

accountAliasstring

Account alias/name for easier identification

accountIdstring uuid

Account ID if the operation is specific to an account

apiKeyAliasstring

API Key alias/name for easier identification

apiKeyIdinteger

API Key ID that made the request

durationMsinteger

Duration of the operation in milliseconds

endpointstring

API endpoint that was called

errorMessagestring

Error message if the operation failed

idstring

Unique identifier for the audit log entry

ipAddressstring

Client IP address

methodstring

HTTP method used

projectIdstring uuid

Project ID associated with this operation

projectNamestring

Project name for easier identification

queryStringstring

Query parameters if any

requestBodystring

Request body (sanitized, passwords removed)

requestBodySizeinteger

Size of request body in bytes

requestHeadersstring

Request headers as JSON string (sensitive headers removed)

responseBodystring

Response body (only for error responses)

responseBodySizeinteger

Size of response body in bytes

serverHoststring

Server hostname that processed the request

statusCodeinteger

HTTP status code of the response

successboolean

Whether the operation was successful (2xx status)

timestampstring date-time

Timestamp when the operation was performed

userAgentstring

User agent string from the client

Example response

[
  {
    "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"
  }
]