---
updatedAt: 2026-04-21T08:49:49.000Z
agentTools:
  projectIndex: https://docs.mesh.complyadvantage.com/llms.txt
---

# Get audit log for a case

Returns the audit log trail for a case.


You need one of the "View cases", "View cases (customer onboarding)", "View cases (customer monitoring)", "View cases (payment screening)" or "View cases (transaction monitoring)" permissions to use this endpoint.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "audit_ActionedBy": {
        "properties": {
          "identifier": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "type": {
            "enum": [
              "SYSTEM",
              "USER"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "audit_Alert": {
        "properties": {
          "identifier": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "identifier"
        ],
        "type": "object"
      },
      "audit_AlertAddedToCaseDetailV2": {
        "properties": {
          "alert_identifiers": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array",
            "uniqueItems": true
          },
          "case": {
            "$ref": "#/components/schemas/audit_Case"
          }
        },
        "required": [
          "alert_identifiers",
          "case"
        ],
        "type": "object"
      },
      "audit_AlertAddedToCaseLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_AlertAddedToCaseDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "ALERT_ADDED_TO_CASE"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_AlertStateUpdatedDetailV2": {
        "properties": {
          "alert": {
            "$ref": "#/components/schemas/audit_Alert"
          },
          "previous_state": {
            "enum": [
              "NOT_STARTED",
              "IN_PROGRESS",
              "POSITIVE_END_STATE",
              "NEGATIVE_END_STATE",
              "UNSPECIFIED"
            ],
            "nullable": true,
            "type": "string"
          },
          "state": {
            "enum": [
              "NOT_STARTED",
              "IN_PROGRESS",
              "POSITIVE_END_STATE",
              "NEGATIVE_END_STATE",
              "UNSPECIFIED"
            ],
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "alert"
        ],
        "type": "object"
      },
      "audit_AlertStateUpdatedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_AlertStateUpdatedDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "ALERT_STATE_UPDATED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_Assignee": {
        "properties": {
          "identifier": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "identifier"
        ],
        "type": "object"
      },
      "audit_Case": {
        "properties": {
          "identifier": {
            "example": "018d0dd4-9b7c-7537-aaac-13f2f48877af",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "identifier"
        ],
        "type": "object"
      },
      "audit_CaseAssignedDetailV2": {
        "properties": {
          "assignee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/audit_Assignee"
              }
            ],
            "nullable": true
          },
          "case": {
            "$ref": "#/components/schemas/audit_CaseInfoV2"
          },
          "customer": {
            "$ref": "#/components/schemas/audit_CustomerReference"
          },
          "previous_assignee": {
            "$ref": "#/components/schemas/audit_Assignee"
          }
        },
        "required": [
          "case",
          "customer"
        ],
        "type": "object"
      },
      "audit_CaseAssignedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_CaseAssignedDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "CASE_ASSIGNED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_CaseAuditLogsPageV2": {
        "properties": {
          "audit_logs": {
            "items": {
              "discriminator": {
                "mapping": {
                  "ALERT_ADDED_TO_CASE": "#/components/schemas/audit_AlertAddedToCaseLogV2",
                  "ALERT_STATE_UPDATED": "#/components/schemas/audit_AlertStateUpdatedLogV2",
                  "CASE_ASSIGNED": "#/components/schemas/audit_CaseAssignedLogV2",
                  "CASE_CREATED": "#/components/schemas/audit_CaseCreatedLogV2",
                  "CASE_STAGE_TRANSITIONED": "#/components/schemas/audit_CaseTransitionedLogV2",
                  "CUSTOMER_SCREENED": "#/components/schemas/audit_CustomerScreenedLogV2",
                  "NOTE_CREATED_TO_CASE_ACTION": "#/components/schemas/audit_NoteCreatedToCaseActionLogV2",
                  "NOTE_TO_CASE_ALERT": "#/components/schemas/audit_NoteToCaseAlertLogV2",
                  "NOTE_TO_CASE_OBJECT": "#/components/schemas/audit_NoteToCaseObjectLogV2",
                  "NOTE_TO_RISK": "#/components/schemas/audit_NoteToRiskLogV2",
                  "PAYMENT_SCREENED": "#/components/schemas/audit_PaymentScreenedLogV2",
                  "RISK_CODE_UNMUTED_FOR_ENTITY": "#/components/schemas/audit_RiskCodeUnmutedForEntityLogV2",
                  "RISK_STATUS_UPDATED": "#/components/schemas/audit_RiskSignalTransitionedLogV2",
                  "SUBJECT_ADDED_TO_CASE": "#/components/schemas/audit_SubjectAddedToCaseLogV2"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/audit_CaseCreatedLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_CaseAssignedLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_CaseTransitionedLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_SubjectAddedToCaseLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_RiskSignalTransitionedLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_CustomerScreenedLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_PaymentScreenedLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_NoteToCaseObjectLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_NoteCreatedToCaseActionLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_NoteToRiskLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_NoteToCaseAlertLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_AlertAddedToCaseLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_AlertStateUpdatedLogV2"
                },
                {
                  "$ref": "#/components/schemas/audit_RiskCodeMutedForEntityDetailV2"
                },
                {
                  "$ref": "#/components/schemas/audit_RiskCodeUnmutedForEntityLogV2"
                }
              ],
              "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_CaseCreatedDetailV2": {
        "properties": {
          "case": {
            "$ref": "#/components/schemas/audit_CaseInfoV2"
          },
          "customer": {
            "$ref": "#/components/schemas/audit_CustomerReference"
          },
          "subjects": {
            "items": {
              "$ref": "#/components/schemas/audit_CaseSubjectInfo"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "required": [
          "case",
          "customer"
        ],
        "type": "object"
      },
      "audit_CaseCreatedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_CaseCreatedDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "CASE_CREATED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_CaseInfoV2": {
        "properties": {
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "subject": {
            "$ref": "#/components/schemas/audit_CaseSubjectInfo"
          },
          "type": {
            "enum": [
              "CUSTOMER_ONBOARDING",
              "CUSTOMER_MONITORING",
              "PAYMENT_SCREENING",
              "TRANSACTION_MONITORING"
            ],
            "type": "string"
          }
        },
        "required": [
          "identifier",
          "subject",
          "type"
        ],
        "type": "object"
      },
      "audit_CaseSubjectInfo": {
        "properties": {
          "identifier": {
            "type": "string"
          },
          "type": {
            "enum": [
              "CUSTOMER",
              "PAYMENT",
              "COUNTERPARTY"
            ],
            "type": "string"
          }
        },
        "required": [
          "identifier",
          "type"
        ],
        "type": "object"
      },
      "audit_CaseTransitionedDetailV2": {
        "properties": {
          "case": {
            "$ref": "#/components/schemas/audit_CaseInfoV2"
          },
          "customer": {
            "$ref": "#/components/schemas/audit_CustomerReference"
          },
          "previous_stage": {
            "$ref": "#/components/schemas/audit_Stage"
          },
          "stage": {
            "$ref": "#/components/schemas/audit_Stage"
          }
        },
        "required": [
          "case",
          "customer",
          "previous_stage",
          "stage"
        ],
        "type": "object"
      },
      "audit_CaseTransitionedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_CaseTransitionedDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "CASE_STAGE_TRANSITIONED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_CustomerReference": {
        "properties": {
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "version": {
            "format": "int32",
            "type": "integer"
          }
        },
        "required": [
          "identifier",
          "version"
        ],
        "type": "object"
      },
      "audit_CustomerScreenedDetailV2": {
        "properties": {
          "alert": {
            "allOf": [
              {
                "$ref": "#/components/schemas/audit_Alert"
              }
            ],
            "nullable": true
          },
          "case": {
            "allOf": [
              {
                "$ref": "#/components/schemas/audit_Case"
              }
            ],
            "nullable": true
          },
          "customer": {
            "$ref": "#/components/schemas/audit_CustomerReference"
          },
          "muted_risks": {
            "items": {
              "$ref": "#/components/schemas/audit_MutedRisk"
            },
            "nullable": true,
            "type": "array"
          },
          "removed_risk_identifiers": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "risk_identifiers": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          },
          "risk_source": {
            "enum": [
              "CUSTOMER_SCREENING",
              "FRAUD",
              "KYB",
              "PAYMENT_SCREENING",
              "TRANSACTION_MONITORING"
            ],
            "type": "string"
          },
          "screening_configuration": {
            "$ref": "#/components/schemas/audit_Screening"
          }
        },
        "required": [
          "customer",
          "risk_identifiers",
          "risk_source",
          "screening_configuration"
        ],
        "type": "object"
      },
      "audit_CustomerScreenedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_CustomerScreenedDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "CUSTOMER_SCREENED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_MutedEntity": {
        "properties": {
          "identifier": {
            "type": "string"
          },
          "type": {
            "enum": [
              "CUSTOMER",
              "COUNTERPARTY",
              "AGENT"
            ],
            "type": "string"
          }
        },
        "required": [
          "identifier",
          "type"
        ],
        "type": "object"
      },
      "audit_MutedRisk": {
        "properties": {
          "identifier": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "identifier"
        ],
        "type": "object"
      },
      "audit_Note": {
        "properties": {
          "content": {
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "is_redacted": {
            "type": "boolean"
          },
          "version": {
            "format": "int32",
            "type": "integer"
          }
        },
        "required": [
          "content",
          "identifier",
          "is_redacted",
          "version"
        ],
        "type": "object"
      },
      "audit_NoteCreatedToCaseActionLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_NoteToCaseActionDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "NOTE_CREATED_TO_CASE_ACTION"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_NoteToCaseActionDetailV2": {
        "properties": {
          "case": {
            "$ref": "#/components/schemas/audit_Case"
          },
          "note": {
            "$ref": "#/components/schemas/audit_Note"
          }
        },
        "required": [
          "case",
          "note"
        ],
        "type": "object"
      },
      "audit_NoteToCaseAlertDetailV2": {
        "properties": {
          "alert": {
            "$ref": "#/components/schemas/audit_Alert"
          },
          "case": {
            "$ref": "#/components/schemas/audit_Case"
          },
          "note": {
            "$ref": "#/components/schemas/audit_Note"
          }
        },
        "required": [
          "alert",
          "case",
          "note"
        ],
        "type": "object"
      },
      "audit_NoteToCaseAlertLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_NoteToCaseAlertDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "NOTE_TO_CASE_ALERT"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_NoteToCaseObjectDetailV2": {
        "properties": {
          "case": {
            "$ref": "#/components/schemas/audit_Case"
          },
          "note": {
            "$ref": "#/components/schemas/audit_Note"
          }
        },
        "required": [
          "case",
          "note"
        ],
        "type": "object"
      },
      "audit_NoteToCaseObjectLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_NoteToCaseObjectDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "NOTE_TO_CASE_OBJECT"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_NoteToRiskDetailV2": {
        "properties": {
          "case": {
            "$ref": "#/components/schemas/audit_Case"
          },
          "note": {
            "$ref": "#/components/schemas/audit_Note"
          },
          "risk": {
            "$ref": "#/components/schemas/audit_Risk"
          }
        },
        "required": [
          "case",
          "note",
          "risk"
        ],
        "type": "object"
      },
      "audit_NoteToRiskLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_NoteToRiskDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "NOTE_TO_RISK"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_PaymentScreenedDetailV2": {
        "properties": {
          "case": {
            "allOf": [
              {
                "$ref": "#/components/schemas/audit_Case"
              }
            ],
            "nullable": true
          },
          "muted_risks": {
            "items": {
              "$ref": "#/components/schemas/audit_MutedRisk"
            },
            "nullable": true,
            "type": "array"
          },
          "removed_risk_identifiers": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "risk_identifiers": {
            "example": [
              "018d0dd4-9b7c-7537-aaac-13f2f48877af"
            ],
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array",
            "uniqueItems": true
          },
          "transaction": {
            "$ref": "#/components/schemas/audit_VersionedTransactionWithType"
          }
        },
        "required": [
          "risk_identifiers",
          "transaction"
        ],
        "type": "object"
      },
      "audit_PaymentScreenedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_PaymentScreenedDetailV2"
          },
          "grouping_key": {
            "example": "transaction-group-123",
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "example": "018d0dd4-9b7c-7537-aaac-13f2f48877af",
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "example": "2024-01-15T10:30:00.000Z",
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "PAYMENT_SCREENED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "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_Risk": {
        "properties": {
          "identifier": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "identifier"
        ],
        "type": "object"
      },
      "audit_RiskCodeMutedForEntityDetailV2": {
        "properties": {
          "case": {
            "allOf": [
              {
                "$ref": "#/components/schemas/audit_Case"
              }
            ],
            "nullable": true
          },
          "entity": {
            "$ref": "#/components/schemas/audit_MutedEntity"
          },
          "risk": {
            "$ref": "#/components/schemas/audit_RiskWithSourceAndCode"
          }
        },
        "required": [
          "entity",
          "risk"
        ],
        "type": "object"
      },
      "audit_RiskCodeUnmutedForEntityLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_RiskCodeMutedForEntityDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "RISK_CODE_UNMUTED_FOR_ENTITY"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_RiskSignalTransitionedDetailV2": {
        "properties": {
          "account_identifier": {
            "format": "uuid",
            "type": "string"
          },
          "case": {
            "$ref": "#/components/schemas/audit_Case"
          },
          "customer": {
            "$ref": "#/components/schemas/audit_CustomerReference"
          },
          "new_profile_hit_state": {
            "enum": [
              "NEW",
              "IN_REVIEW",
              "TRUE_POSITIVE",
              "FALSE_POSITIVE",
              "UPDATED"
            ],
            "type": "string"
          },
          "risk": {
            "$ref": "#/components/schemas/audit_RiskWithType"
          }
        },
        "required": [
          "account_identifier",
          "case",
          "customer",
          "new_profile_hit_state",
          "risk"
        ],
        "type": "object"
      },
      "audit_RiskSignalTransitionedLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_RiskSignalTransitionedDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "RISK_STATUS_UPDATED"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_RiskWithSourceAndCode": {
        "properties": {
          "code": {
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "source": {
            "enum": [
              "CUSTOMER_SCREENING",
              "FRAUD",
              "KYB",
              "PAYMENT_SCREENING",
              "TRANSACTION_MONITORING"
            ],
            "type": "string"
          }
        },
        "required": [
          "code",
          "source"
        ],
        "type": "object"
      },
      "audit_RiskWithType": {
        "properties": {
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "type": {
            "enum": [
              "ENTITY_SCREENING",
              "FRAUD",
              "PAYMENT_SCREENING",
              "TRANSACTION_MONITORING"
            ],
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "identifier"
        ],
        "type": "object"
      },
      "audit_Screening": {
        "properties": {
          "configuration_identifier": {
            "nullable": true,
            "type": "string"
          },
          "configuration_version": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "screening_type": {
            "enum": [
              "UNSPECIFIED",
              "MONITORING",
              "SCREENING"
            ],
            "type": "string"
          }
        },
        "required": [
          "screening_type"
        ],
        "type": "object"
      },
      "audit_Stage": {
        "properties": {
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "version": {
            "format": "int32",
            "type": "integer"
          }
        },
        "required": [
          "identifier",
          "version"
        ],
        "type": "object"
      },
      "audit_SubjectAddedToCaseDetailV2": {
        "properties": {
          "case": {
            "$ref": "#/components/schemas/audit_CaseInfoV2"
          },
          "customer": {
            "$ref": "#/components/schemas/audit_CustomerReference"
          },
          "subjects": {
            "items": {
              "$ref": "#/components/schemas/audit_CaseSubjectInfo"
            },
            "type": "array"
          }
        },
        "required": [
          "case",
          "customer",
          "subjects"
        ],
        "type": "object"
      },
      "audit_SubjectAddedToCaseLogV2": {
        "properties": {
          "actioned_by": {
            "$ref": "#/components/schemas/audit_ActionedBy"
          },
          "detail": {
            "$ref": "#/components/schemas/audit_SubjectAddedToCaseDetailV2"
          },
          "grouping_key": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "enum": [
              "SUBJECT_ADDED_TO_CASE"
            ],
            "type": "string"
          }
        },
        "required": [
          "actioned_by",
          "detail",
          "identifier",
          "occurred_at",
          "type"
        ],
        "type": "object"
      },
      "audit_VersionedTransactionWithType": {
        "properties": {
          "identifier": {
            "example": "018d0dd4-9b7c-7537-aaac-13f2f48877af",
            "format": "uuid",
            "type": "string"
          },
          "type": {
            "enum": [
              "BANK_PAYMENT",
              "CARD_PAYMENT",
              "REMITTANCE",
              "CRYPTO"
            ],
            "example": "BANK_PAYMENT",
            "type": "string"
          },
          "version": {
            "example": 1,
            "format": "int32",
            "type": "integer"
          }
        },
        "required": [
          "identifier",
          "type",
          "version"
        ],
        "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/cases/{case_identifier}": {
      "get": {
        "description": "Returns the audit log trail for a case.\n\n\nYou need one of the \"View cases\", \"View cases (customer onboarding)\", \"View cases (customer monitoring)\", \"View cases (payment screening)\" or \"View cases (transaction monitoring)\" permissions to use this endpoint.",
        "operationId": "auditGetCaseAuditTrailV2",
        "parameters": [
          {
            "description": "The case identifier",
            "example": "018d0dd4-9b7c-7537-aaac-13f2f48877af",
            "in": "path",
            "name": "case_identifier",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "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_CaseAuditLogsPageV2"
                }
              }
            },
            "description": "Returns the audit log trail for the case."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/audit_ProblemDetailErrorResponse"
                }
              }
            },
            "description": "Invalid case uuid identifier."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/audit_ProblemDetailErrorResponse"
                }
              }
            },
            "description": "No logs found for case."
          }
        },
        "summary": "Get audit log for a case",
        "tags": [
          "Audit"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "servers": [
    {
      "description": "ComplyAdvantage Mesh API",
      "url": "https://api.mesh.complyadvantage.com"
    }
  ],
  "tags": [
    {
      "name": "Audit"
    }
  ]
}
```