> ## 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.

# List Agent Revisions

> Retrieve the version history of an agent's configuration changes



## OpenAPI

````yaml openapi.json get /agents/{agentId}/revisions
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:
    get:
      tags:
        - Versioning
      summary: List Agent Revisions
      description: Retrieve the version history of an agent's configuration changes
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
            description: Agent ID
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
            description: Maximum number of revisions to return
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            description: Number of revisions to skip for pagination
      responses:
        '200':
          description: List of agent revisions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevisionList'
        '401':
          description: Authentication required
        '404':
          description: Agent not found
      security:
        - ApiKeyAuth: []
components:
  schemas:
    RevisionList:
      type: array
      items:
        $ref: '#/components/schemas/Revision'
    Revision:
      type: object
      properties:
        id:
          type: string
          description: Revision ID
        agentId:
          type: string
          description: Agent ID
        createdAt:
          type: string
          format: date-time
          description: Revision creation timestamp
      required:
        - id
        - agentId
        - createdAt
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Provide either X-API-Key: <key> or Authorization: Bearer <key>'

````