> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.idenfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve a case's audit trail

> Returns the complete timeline for the case, oldest first: every claim, assignment, note, escalation, information request, close and reopen, with who did it and when. Events recorded against the case, against the transaction, and against the individual alerts are merged into one trail, so the history is continuous rather than starting partway through.



## OpenAPI

````yaml /openapi/transaction-monitoring.json get /api/v1/alerts/groups/{transaction_id}/audit-trail/
openapi: 3.0.3
info:
  title: iDenfy Transaction Monitoring API
  version: v1
  description: >-
    Submit transactions and events for AML monitoring, and read back the alerts,
    cases and reports they produce.
servers:
  - url: https://ivs-tx-monitoring.idenfy.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Ingest
    description: Submit transactions and events for monitoring.
  - name: Transactions
    description: Read back submitted transactions and their rule hits.
  - name: Rules
    description: Detection rules evaluated against every submission.
  - name: Alerts
    description: Alerts opened when a rule matches.
  - name: Investigations
    description: Cases opened from one or more alerts.
  - name: SARs
    description: Suspicious activity reports and their attachments.
  - name: Sanctions screening
    description: Sanctions and PEP screening of transaction parties.
  - name: AML monitoring
    description: Ongoing AML monitoring of screened parties.
  - name: Party suspensions
    description: ''
  - name: Webhooks
    description: Outbound event delivery to your endpoints.
  - name: Custom fields
    description: Your own transaction attributes, declared so rules can match them.
  - name: Reference lists
    description: Named value lists rules can reference.
  - name: Notification rules
    description: Slack and email notifications for alerts.
  - name: Reports
    description: Generated compliance reports.
paths:
  /api/v1/alerts/groups/{transaction_id}/audit-trail/:
    get:
      tags:
        - Alerts
      summary: Retrieve a case's audit trail
      description: >-
        Returns the complete timeline for the case, oldest first: every claim,
        assignment, note, escalation, information request, close and reopen,
        with who did it and when. Events recorded against the case, against the
        transaction, and against the individual alerts are merged into one
        trail, so the history is continuous rather than starting partway
        through.
      operationId: alerts_groups_audit_trail_retrieve
      parameters:
        - in: path
          name: transaction_id
          schema:
            type: string
            format: uuid
            description: Transaction that triggered this alert
          required: true
          description: Identifies the transaction.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlertResponse'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    AlertResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        partnerId:
          type: integer
          readOnly: true
        transactionId:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        ruleId:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        ruleName:
          type: string
          readOnly: true
          description: Denormalized rule name snapshot at match time
        severity:
          type: string
          readOnly: true
          description: Severity copied from the matching rule
        status:
          allOf:
            - $ref: '#/components/schemas/AlertStatus'
          readOnly: true
          description: >-
            Mirror of the owning case's lifecycle state, dual-written by
            AlertCase so readers that predate AlertCase keep working; the case
            is authoritative and this column is not independently writable


            * `OPEN` - Open

            * `IN_REVIEW` - In Review

            * `CLOSED` - Closed

            * `ESCALATED` - Escalated
        riskScore:
          type: integer
          readOnly: true
          description: Risk score copied from the matching rule
        assignedTo:
          type: integer
          description: Unique identifier of the user
          readOnly: true
        assignedToName:
          type: string
          nullable: true
          readOnly: true
          description: Name of the assigned user, or null when nobody is assigned
        assignedTeamId:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        assignedTeamName:
          type: string
          readOnly: true
        tierLevel:
          type: integer
          readOnly: true
          description: >-
            Mirror of the owning case's review tier, dual-written by AlertCase
            so readers that predate AlertCase keep working; the case is
            authoritative and this column is not independently writable
        investigationId:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        isInitial:
          type: boolean
          readOnly: true
          description: >-
            True for the alert that opened this investigation (the case's
            primary alert)
        escalatedToRoleId:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        escalatedToRoleName:
          type: string
          readOnly: true
        slaDeadline:
          type: string
          format: date-time
          readOnly: true
          nullable: true
          description: >-
            Mirror of the owning case's SLA deadline, dual-written by AlertCase
            so readers that predate AlertCase keep working; the case is
            authoritative and this column is not independently writable
        slaBreached:
          type: boolean
          readOnly: true
          description: >-
            Mirror of the owning case's notify-once breach marker, dual-written
            by AlertCase so readers that predate AlertCase keep working; the
            case is authoritative and this column is not independently writable
        slaStatus:
          type: string
          readOnly: true
          description: >-
            Where this alert stands against its review deadline, computed
            against the current time
        notes:
          type: string
          readOnly: true
          nullable: true
          description: >-
            Mirror of the owning case's analyst notes, dual-written by AlertCase
            so readers that predate AlertCase keep working; the case is
            authoritative and this column is not independently writable
        escalationHistory:
          type: array
          items:
            type: object
            additionalProperties: {}
          readOnly: true
          description: >-
            Every tier change on this alert, in order, with who escalated it and
            why
        outcome:
          readOnly: true
          nullable: true
          description: >-
            Mirror of the owning case's structured disposition, set on close,
            dual-written by AlertCase so readers that predate AlertCase keep
            working; the case is authoritative and this column is not
            independently writable


            * `OK_FALSE_POSITIVE` - OK / False Positive

            * `PENDING` - Pending / Waiting for Reply

            * `ESCALATED` - Escalated

            * `RISKY_SUSPICIOUS` - Risky / Suspicious Activity

            * `FRAUD` - Fraud
          oneOf:
            - $ref: '#/components/schemas/OutcomeA4cEnum'
            - $ref: '#/components/schemas/NullEnum'
        outcomeStatus:
          allOf:
            - $ref: '#/components/schemas/RuleOutcomeStatus'
          readOnly: true
          description: >-
            TransactionStatus the matching rule resolves to, copied at match
            time so a later rule edit cannot rewrite this decision


            * `FLAGGED` - Flagged

            * `BLOCKED` - Blocked

            * `REJECTED` - Rejected

            * `SUSPEND_PROFILE` - Suspend profile
        triggeredValues:
          readOnly: true
          description: >-
            Why this rule fired, captured at match time: the condition text and
            the transaction values that satisfied it. Empty for alerts raised
            before this was recorded, and never derived on read, because a rule
            edited or deleted afterwards would explain a past decision wrongly
        analystOutcomeStatus:
          readOnly: true
          nullable: true
          description: >-
            Mirror of the owning case's analyst-decided TransactionStatus
            override, dual-written by AlertCase so readers that predate
            AlertCase keep working; the case is authoritative and this column is
            not independently writable


            * `FLAGGED` - Flagged

            * `ALLOWED` - Allowed

            * `BLOCKED` - Blocked

            * `REJECTED` - Rejected
          oneOf:
            - $ref: '#/components/schemas/AnalystOutcomeStatusEnum'
            - $ref: '#/components/schemas/NullEnum'
        effectiveOutcomeStatus:
          type: string
          readOnly: true
          description: >-
            The status that applies now: an analyst's decision where one was
            made, otherwise what the rule resolved at match time
        blocksTransaction:
          type: boolean
          readOnly: true
          description: >-
            Derived mirror of `outcome_status` holding the payment (BLOCKED or
            SUSPEND_PROFILE), dual-written by save() for readers that predate
            `outcome_status`; not independently writable
        analystDecisionHistory:
          type: array
          items:
            type: object
            additionalProperties: {}
          readOnly: true
          description: >-
            Every decision recorded against this alert, in order, with who made
            it
        transactionStatus:
          type: string
          readOnly: true
          description: Current status of the transaction this alert was raised on
        isTest:
          type: boolean
          readOnly: true
          description: >-
            True when this record is test data rather than live monitoring data;
            derived from the record it originates from, never set by hand
        amountPrevented:
          type: string
          format: decimal
          pattern: ^-?\d{0,16}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
          description: >-
            Mirror of the owning case's quantified loss prevented, dual-written
            by AlertCase so readers that predate AlertCase keep working; the
            case is authoritative and this column is not independently writable
        amountPreventedCurrency:
          type: string
          readOnly: true
          nullable: true
          description: >-
            Mirror of the owning case's `amount_prevented` currency code,
            dual-written by AlertCase so readers that predate AlertCase keep
            working; the case is authoritative and this column is not
            independently writable
        createdAt:
          type: string
          format: date-time
          readOnly: true
        updatedAt:
          type: string
          format: date-time
          readOnly: true
      required:
        - amountPrevented
        - amountPreventedCurrency
        - analystDecisionHistory
        - analystOutcomeStatus
        - assignedTeamId
        - assignedTeamName
        - assignedTo
        - assignedToName
        - blocksTransaction
        - createdAt
        - effectiveOutcomeStatus
        - escalatedToRoleId
        - escalatedToRoleName
        - escalationHistory
        - id
        - investigationId
        - isInitial
        - isTest
        - notes
        - outcome
        - outcomeStatus
        - partnerId
        - riskScore
        - ruleId
        - ruleName
        - severity
        - slaBreached
        - slaDeadline
        - slaStatus
        - status
        - tierLevel
        - transactionId
        - transactionStatus
        - triggeredValues
        - updatedAt
    AlertStatus:
      enum:
        - OPEN
        - IN_REVIEW
        - CLOSED
        - ESCALATED
      type: string
      description: |-
        * `OPEN` - Open
        * `IN_REVIEW` - In Review
        * `CLOSED` - Closed
        * `ESCALATED` - Escalated
    OutcomeA4cEnum:
      enum:
        - OK_FALSE_POSITIVE
        - PENDING
        - ESCALATED
        - RISKY_SUSPICIOUS
        - FRAUD
      type: string
      description: |-
        * `OK_FALSE_POSITIVE` - OK / False Positive
        * `PENDING` - Pending / Waiting for Reply
        * `ESCALATED` - Escalated
        * `RISKY_SUSPICIOUS` - Risky / Suspicious Activity
        * `FRAUD` - Fraud
    NullEnum:
      enum:
        - null
    RuleOutcomeStatus:
      enum:
        - FLAGGED
        - BLOCKED
        - REJECTED
        - SUSPEND_PROFILE
      type: string
      description: |-
        * `FLAGGED` - Flagged
        * `BLOCKED` - Blocked
        * `REJECTED` - Rejected
        * `SUSPEND_PROFILE` - Suspend profile
    AnalystOutcomeStatusEnum:
      enum:
        - FLAGGED
        - ALLOWED
        - BLOCKED
        - REJECTED
      type: string
      description: |-
        * `FLAGGED` - Flagged
        * `ALLOWED` - Allowed
        * `BLOCKED` - Blocked
        * `REJECTED` - Rejected
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

## Related topics

- [Reopen a case](https://documentation.idenfy.com/api-reference/transaction-monitoring/alerts/reopen-a-case.md)
- [Retrieve a case](https://documentation.idenfy.com/api-reference/transaction-monitoring/alerts/retrieve-a-case.md)
- [Assign a case to a person](https://documentation.idenfy.com/api-reference/transaction-monitoring/alerts/assign-a-case-to-a-person.md)
- [Retrieve a case's customer context](https://documentation.idenfy.com/api-reference/transaction-monitoring/alerts/retrieve-a-cases-customer-context.md)
- [Transaction Monitoring Dashboard: Alert Queue](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/alerts.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.