---
updatedAt: 2026-08-26T17:36:42.000Z
agentTools:
  projectIndex: https://docs.mesh.complyadvantage.com/llms.txt
---

# Get audit log for your account

Returns the audit log trail for your account.


You need the "View all accounts" permission to use this endpoint.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "audit_AccountActivatedDetailV2": {
        "properties": {
          "account": {
            "$ref": "#/components/schemas/audit_AccountReference"
          }
        },
        "required": [
          "account"
        ],
        "type": "object"
      },
      "audit_AccountActivatedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_AccountActivatedDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "ACCOUNT_ACTIVATED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_AccountAuditLogsPageV2": {
        "properties": {
          "audit_logs": {
            "items": {
              "discriminator": {
                "mapping": {
                  "ACCOUNT_ACTIVATED": "#/components/schemas/audit_AccountActivatedLogV2",
                  "ACCOUNT_CREATED": "#/components/schemas/audit_AccountCreatedLogV2",
                  "ACCOUNT_DEACTIVATED": "#/components/schemas/audit_AccountDeactivatedLogV2",
                  "ACCOUNT_IP_RESTRICTIONS_UPDATED": "#/components/schemas/audit_AccountIpRestrictionsUpdatedLogV2",
                  "ACCOUNT_NAME_UPDATED": "#/components/schemas/audit_AccountNameUpdatedLogV2",
                  "ACCOUNT_PERMISSIONS_UPDATED": "#/components/schemas/audit_AccountPermissionsUpdatedLogV2",
                  "ACCOUNT_RATE_LIMITS_UPDATED": "#/components/schemas/audit_AccountRateLimitsUpdatedLogV2",
                  "ACCOUNT_TYPE_UPDATED": "#/components/schemas/audit_AccountTypeUpdatedLogV2"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/audit_AccountCreatedLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_AccountDeactivatedLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_AccountActivatedLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_AccountNameUpdatedLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_AccountTypeUpdatedLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_AccountIpRestrictionsUpdatedLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_AccountPermissionsUpdatedLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_AccountRateLimitsUpdatedLogV2"
                }
              ],
              "type": "object"
            },
            "type": "array"
          },
          "first": {
            "description": "The URL path to the first page.",
            "example": "/v1/resource?page_number=1",
            "type": "string"
          },
          "next": {
            "description": "The URL path to the next page.",
            "example": "/v1/resource?page_number=4",
            "nullable": true,
            "type": "string"
          },
          "prev": {
            "description": "The URL path to the previous page.",
            "example": "/v1/resource?page_number=2",
            "nullable": true,
            "type": "string"
          },
          "self": {
            "description": "The URL path to the current page.",
            "example": "/v1/resource?page_number=3",
            "type": "string"
          },
          "total_count": {
            "description": "Total number of items.",
            "example": 60,
            "format": "int64",
            "nullable": true,
            "type": "integer"
          }
        },
        "required": [
          "audit_logs",
          "first",
          "self"
        ],
        "type": "object"
      },
      "audit_AccountCreatedDetailV2": {
        "properties": {
          "account": {
            "$ref": "#/components/schemas/audit_AccountReference"
          },
          "client": {
            "$ref": "#/components/schemas/audit_ClientReference"
          }
        },
        "required": [
          "account",
          "client"
        ],
        "type": "object"
      },
      "audit_AccountCreatedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_AccountCreatedDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "ACCOUNT_CREATED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_AccountDeactivatedDetailV2": {
        "properties": {
          "account": {
            "$ref": "#/components/schemas/audit_AccountReference"
          }
        },
        "required": [
          "account"
        ],
        "type": "object"
      },
      "audit_AccountDeactivatedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_AccountDeactivatedDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "ACCOUNT_DEACTIVATED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_AccountIpRestrictionsUpdatedDetailV2": {
        "properties": {
          "account": {
            "$ref": "#/components/schemas/audit_AccountReference"
          },
          "ip_restrictions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "previous_ip_restrictions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "account",
          "ip_restrictions",
          "previous_ip_restrictions"
        ],
        "type": "object"
      },
      "audit_AccountIpRestrictionsUpdatedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_AccountIpRestrictionsUpdatedDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "ACCOUNT_IP_RESTRICTIONS_UPDATED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_AccountNameUpdatedDetailV2": {
        "properties": {
          "account": {
            "$ref": "#/components/schemas/audit_AccountReference"
          },
          "name": {
            "type": "string"
          },
          "previous_name": {
            "type": "string"
          }
        },
        "required": [
          "account",
          "name",
          "previous_name"
        ],
        "type": "object"
      },
      "audit_AccountNameUpdatedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_AccountNameUpdatedDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "ACCOUNT_NAME_UPDATED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_AccountPermissionsUpdatedDetailV2": {
        "properties": {
          "account": {
            "$ref": "#/components/schemas/audit_AccountReference"
          },
          "permissions": {
            "items": {
              "format": "int32",
              "type": "integer"
            },
            "type": "array"
          },
          "previous_permissions": {
            "items": {
              "format": "int32",
              "type": "integer"
            },
            "type": "array"
          }
        },
        "required": [
          "account",
          "permissions",
          "previous_permissions"
        ],
        "type": "object"
      },
      "audit_AccountPermissionsUpdatedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_AccountPermissionsUpdatedDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "ACCOUNT_PERMISSIONS_UPDATED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_AccountRateLimitsUpdatedDetailV2": {
        "properties": {
          "account": {
            "$ref": "#/components/schemas/audit_AccountReference"
          },
          "previous_rate_limits": {
            "items": {
              "$ref": "#/components/schemas/audit_RateLimitOverrideSnapshot"
            },
            "type": "array"
          },
          "rate_limits": {
            "items": {
              "$ref": "#/components/schemas/audit_RateLimitOverrideSnapshot"
            },
            "type": "array"
          }
        },
        "required": [
          "account",
          "previous_rate_limits",
          "rate_limits"
        ],
        "type": "object"
      },
      "audit_AccountRateLimitsUpdatedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_AccountRateLimitsUpdatedDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "ACCOUNT_RATE_LIMITS_UPDATED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_AccountReference": {
        "properties": {
          "identifier": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "identifier"
        ],
        "type": "object"
      },
      "audit_AccountTypeUpdatedDetailV2": {
        "properties": {
          "account": {
            "$ref": "#/components/schemas/audit_AccountReference"
          },
          "previous_type": {
            "enum": [
              "PRODUCTION",
              "NON_PRODUCTION"
            ],
            "type": "string"
          },
          "type": {
            "enum": [
              "PRODUCTION",
              "NON_PRODUCTION"
            ],
            "type": "string"
          }
        },
        "required": [
          "account",
          "previous_type",
          "type"
        ],
        "type": "object"
      },
      "audit_AccountTypeUpdatedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_AccountTypeUpdatedDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "ACCOUNT_TYPE_UPDATED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_ActionedBy": {
        "properties": {
          "identifier": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "type": {
            "enum": [
              "SYSTEM",
              "USER"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "audit_ClientReference": {
        "properties": {
          "identifier": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "identifier"
        ],
        "type": "object"
      },
      "audit_ProblemDetailErrorResponse": {
        "additionalProperties": true,
        "properties": {
          "detail": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "instance": {
            "format": "uri",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "timestamp": {
            "format": "date-time",
            "type": "string"
          },
          "title": {
            "nullable": true,
            "type": "string"
          },
          "type": {
            "format": "uri",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "identifier",
          "timestamp"
        ],
        "type": "object"
      },
      "audit_RateLimitOverride": {
        "properties": {
          "endpoints": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "endpoints",
          "value"
        ],
        "type": "object"
      },
      "audit_RateLimitOverrideSnapshot": {
        "properties": {
          "override": {
            "$ref": "#/components/schemas/audit_RateLimitOverride"
          }
        },
        "required": [
          "override"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "description": "HTTP Bearer Token Authentication",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "Mesh API",
    "version": "v2.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/v2/audit/accounts/me": {
      "get": {
        "description": "Returns the audit log trail for your account.\n\n\nYou need the \"View all accounts\" permission to use this endpoint.",
        "operationId": "auditGetMyAccountAuditTrailV2",
        "parameters": [
          {
            "description": "Page index",
            "example": 1,
            "in": "query",
            "name": "page_number",
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "The size of the page to be returned",
            "example": 50,
            "in": "query",
            "name": "page_size",
            "schema": {
              "default": 50,
              "type": "integer"
            }
          },
          {
            "description": "Sorting criteria in the format (-)?[parameter]. Default sort order is ascending. for descending prefix the parameter with `-` Multiple sort criteria are supported.",
            "example": [
              "-occurred_at"
            ],
            "in": "query",
            "name": "sort",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/audit_AccountAuditLogsPageV2"
                }
              }
            },
            "description": "Returns the audit log trail for the account."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/audit_ProblemDetailErrorResponse"
                }
              }
            },
            "description": "Invalid request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/audit_ProblemDetailErrorResponse"
                }
              }
            },
            "description": "Missing CLIENTS_ACCOUNTS_VIEW permission."
          }
        },
        "summary": "Get audit log for your account",
        "tags": [
          "Audit"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "servers": [
    {
      "description": "ComplyAdvantage Mesh API",
      "url": "https://api.mesh.complyadvantage.com"
    }
  ],
  "tags": [
    {
      "name": "Audit"
    }
  ]
}
```