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

# Compare Registry Versions

> Compare two registry versions and return the diff.

Args:
    repository_id: The repository ID
    version_id: The base version ID (typically older)
    compare_to: The version ID to compare against (typically newer)

Returns:
    VersionDiff with added, removed, and modified actions



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json get /registry/repos/{repository_id}/versions/{version_id}/diff
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /registry/repos/{repository_id}/versions/{version_id}/diff:
    get:
      tags:
        - registry-repositories
      summary: Compare Registry Versions
      description: |-
        Compare two registry versions and return the diff.

        Args:
            repository_id: The repository ID
            version_id: The base version ID (typically older)
            compare_to: The version ID to compare against (typically newer)

        Returns:
            VersionDiff with added, removed, and modified actions
      operationId: registry-repositories-compare_registry_versions
      parameters:
        - name: repository_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Repository Id
        - name: version_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Version Id
        - name: compare_to
          in: query
          required: true
          schema:
            type: string
            format: uuid
            title: Compare To
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VersionDiff'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
components:
  schemas:
    VersionDiff:
      properties:
        base_version_id:
          type: string
          format: uuid
          title: Base Version Id
        base_version:
          type: string
          title: Base Version
        compare_version_id:
          type: string
          format: uuid
          title: Compare Version Id
        compare_version:
          type: string
          title: Compare Version
        actions_added:
          items:
            type: string
          type: array
          title: Actions Added
        actions_removed:
          items:
            type: string
          type: array
          title: Actions Removed
        actions_modified:
          items:
            $ref: '#/components/schemas/ActionChange'
          type: array
          title: Actions Modified
        total_changes:
          type: integer
          title: Total Changes
          default: 0
      type: object
      required:
        - base_version_id
        - base_version
        - compare_version_id
        - compare_version
      title: VersionDiff
      description: Result of comparing two registry versions.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ActionChange:
      properties:
        action_name:
          type: string
          title: Action Name
        change_type:
          type: string
          enum:
            - added
            - removed
            - modified
          title: Change Type
        interface_changes:
          items:
            $ref: '#/components/schemas/ActionInterfaceChange'
          type: array
          title: Interface Changes
        description_changed:
          type: boolean
          title: Description Changed
          default: false
      type: object
      required:
        - action_name
        - change_type
      title: ActionChange
      description: Describes a change to an action between two versions.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ActionInterfaceChange:
      properties:
        field:
          type: string
          enum:
            - expects
            - returns
          title: Field
        change_type:
          type: string
          enum:
            - added
            - removed
            - modified
          title: Change Type
        old_value:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Old Value
        new_value:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: New Value
      type: object
      required:
        - field
        - change_type
      title: ActionInterfaceChange
      description: Describes a change to an action's interface (expects or returns).
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: fastapiusersauth

````