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

# Get Record History API

> See who changed a Breezing contact, asset, rule, tax rate, invoice, or journal, with the previous and new values of each change.



## OpenAPI

````yaml GET /record-history
openapi: 3.1.0
info:
  title: Breezing Public API
  version: 1.0.0
  description: >-
    Crypto accounting API for programmatic access and AI agents. Authenticate
    with an API key using the Authorization header: `Bearer brz_...`
servers:
  - url: https://api.breezing.io/v1
security:
  - BearerAuth: []
paths:
  /record-history:
    get:
      tags:
        - Record History
      summary: Change history of one record
      description: >-
        Who changed what on one contact, asset, rule, tax rate, received
        invoice, issued invoice or journal, newest first (the latest 100
        changes). Each entry carries only the fields that changed: `previous`
        holds the old values and `payload` the new ones. Only changes a person
        made are recorded (dashboard, API and chat writes), not background
        imports or scans. A record with no recorded change answers an empty
        list. For transactions use GET /transactions/{id}/history, and for the
        chart of accounts GET /company/accounts/history.
      parameters:
        - schema:
            type: string
            description: >-
              Organization ID. Use GET /v1/companies to discover available
              org/company pairs.
            example: '1'
          required: true
          description: >-
            Organization ID. Use GET /v1/companies to discover available
            org/company pairs.
          name: orgId
          in: query
        - schema:
            type: string
            description: >-
              Company ID. Use GET /v1/companies to discover available companies
              and their access levels.
            example: '1'
          required: true
          description: >-
            Company ID. Use GET /v1/companies to discover available companies
            and their access levels.
          name: companyId
          in: query
        - schema:
            type: string
            enum:
              - contact
              - asset
              - rule
              - tax
              - invoice
              - issuedInvoice
              - journal
            description: >-
              The kind of record: contact, asset, rule, tax (a tax rate),
              invoice (a received invoice), issuedInvoice or journal.
            example: contact
          required: true
          description: >-
            The kind of record: contact, asset, rule, tax (a tax rate), invoice
            (a received invoice), issuedInvoice or journal.
          name: recordType
          in: query
        - schema:
            type: string
            description: >-
              ID of the record. For a journal, any version of it: the history
              covers every version sharing its number.
            example: '42'
          required: true
          description: >-
            ID of the record. For a journal, any version of it: the history
            covers every version sharing its number.
          name: recordId
          in: query
      responses:
        '200':
          description: Changes of the record, newest first
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/RecordHistoryEntry'
                required:
                  - success
                  - data
        '400':
          description: Unknown recordType or a recordId that is not a number
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '403':
          description: >-
            API key has no access to this company, has read-only access where
            write was required, or the company subscription is inactive
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
      security:
        - BearerAuth: []
components:
  schemas:
    RecordHistoryEntry:
      type: object
      properties:
        id:
          type: integer
          description: History entry ID
        action:
          type: string
          nullable: true
          description: >-
            What happened: "created", "updated", "deleted", or a named status
            move such as "approved", "posted", "voided", "archived" or
            "paymentLinked".
        channel:
          type: string
          nullable: true
          description: >-
            How the change entered Breezing: "ui" (dashboard), "api" (API keys,
            MCP included), "chat", or null for a background step.
        userEmail:
          type: string
          nullable: true
          description: Email of the person who made the change.
        userFirstName:
          type: string
          nullable: true
        userLastName:
          type: string
          nullable: true
        previous:
          nullable: true
          description: >-
            Old values of the fields that changed, keyed by field name. A
            deletion carries the whole record here.
        payload:
          nullable: true
          description: >-
            New values of the fields that changed, keyed by field name. A
            creation carries the whole record here.
        createdAt:
          type: number
          description: When the change happened (unix ms).
      required:
        - id
        - action
        - channel
        - userEmail
        - userFirstName
        - userLastName
        - createdAt

````

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