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

# Get Revision Diff

> Compare two agent revisions to see configuration differences



## OpenAPI

````yaml openapi.json get /agents/{agentId}/revisions/diff
openapi: 3.1.0
info:
  title: Ag.dev API
  description: Public API for Ag.dev
  version: 0.1.0
servers:
  - url: https://api.ag.dev/v0.1
security: []
tags:
  - name: Agents
    description: Agent management and configuration
  - name: Runs
    description: Agent run execution and monitoring
  - name: Versioning
    description: Agent versioning, revisions, and publishing
  - name: MCP Servers
    description: MCP server management and tool discovery
  - name: Settings
    description: Organization settings and API keys
  - name: Users
    description: User information and authentication
  - name: Drives
    description: Drive management and file operations
  - name: Webhooks
    description: Webhook health checks
paths:
  /agents/{agentId}/revisions/diff:
    get:
      tags:
        - Versioning
      summary: Get Revision Diff
      description: Compare two agent revisions to see configuration differences
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
            description: Agent ID
        - name: from
          in: query
          required: true
          schema:
            type: string
            description: Source revision ID for diff
        - name: to
          in: query
          required: true
          schema:
            type: string
            description: Target revision ID for diff
      responses:
        '200':
          description: Revision diff
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevisionDiff'
        '401':
          description: Authentication required
        '404':
          description: Agent or revision not found
      security:
        - ApiKeyAuth: []
components:
  schemas:
    RevisionDiff:
      type: object
      properties:
        changes:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
                description: JSON path of the change
              oldValue:
                description: Previous value
              newValue:
                description: New value
            required:
              - path
          description: List of changes between revisions
      required:
        - changes
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Provide either X-API-Key: <key> or Authorization: Bearer <key>'

````