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

# List an agent's revisions

> Lists an agent's revisions, newest first, one page at a time.

Minimum role required: Viewer


## OpenAPI

````yaml /api-reference/openapi-backend.json get /agents/{agent_id}/revisions
openapi: 3.1.0
info:
  description: Axilio backend HTTP API.
  title: Axilio API
  version: 0.155.0
servers:
  - url: https://api.axilio.ai/api/v1
    description: Production
security: []
tags:
  - name: Agents
  - name: API Keys
  - name: Billing
  - name: Conversations
  - name: Files
  - name: Messages
  - name: Models
  - name: Organization
  - name: Phones
  - name: Runs
  - name: Sessions
  - name: Skill
  - name: Usage
  - name: Webhooks
paths:
  /agents/{agent_id}/revisions:
    get:
      tags:
        - Agents
      summary: List an agent's revisions
      description: Lists an agent's revisions, newest first, one page at a time.
      operationId: agents_list_revisions
      parameters:
        - description: The agent's id.
          in: path
          name: agent_id
          required: true
          schema:
            description: The agent's id.
            format: uuid
            type: string
        - description: Page size.
          explode: false
          in: query
          name: limit
          schema:
            default: 50
            description: Page size.
            format: int64
            maximum: 200
            minimum: 1
            type: integer
        - description: Where the page starts.
          explode: false
          in: query
          name: offset
          schema:
            default: 0
            description: Where the page starts.
            format: int64
            minimum: 0
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentRevisionList'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/V2ErrorModel'
          description: Bad Request
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/V2ErrorModel'
          description: Forbidden
        '404':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/V2ErrorModel'
          description: Not Found
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/V2ErrorModel'
          description: Unprocessable Entity
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/V2ErrorModel'
          description: Internal Server Error
      security:
        - apiKeyAuth: []
components:
  schemas:
    AgentRevisionList:
      additionalProperties: false
      description: One page of an agent's revisions, newest first, without their content.
      properties:
        limit:
          description: The page size.
          format: int64
          type: integer
        offset:
          description: Where this page starts.
          format: int64
          type: integer
        revisions:
          description: The revisions on this page.
          items:
            $ref: '#/components/schemas/AgentRevisionSummary'
          type:
            - array
            - 'null'
        total:
          description: How many revisions the agent has.
          format: int64
          type: integer
      required:
        - revisions
        - total
        - limit
        - offset
      type: object
    V2ErrorModel:
      additionalProperties: false
      description: >-
        Error response, following RFC 9457 (Problem Details for HTTP APIs).
        Returned with a application/problem+json content type.
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/V2ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    AgentRevisionSummary:
      additionalProperties: false
      description: >-
        One revision of an agent, without its content. Fetch the revision for
        its instructions or code.
      properties:
        agent_id:
          description: The agent the revision belongs to.
          format: uuid
          type: string
        author_user_id:
          description: >-
            The user who added the revision. Null once they have deleted their
            account.
          format: uuid
          type:
            - string
            - 'null'
        bytes:
          description: The size of the revision's instructions or code, in bytes.
          format: int64
          type: integer
        created_at:
          description: When the revision was added.
          format: date-time
          type: string
        id:
          description: The revision's id.
          format: uuid
          type: string
        kind:
          description: >-
            code: the revision is a script. instructions: the revision is a task
            the agent works through a model.
          enum:
            - code
            - instructions
          type: string
        message:
          description: The author's note on the revision.
          type: string
        proposal_state:
          description: >-
            Set when the revision is a fix a repair proposed: waiting to be
            promoted, superseded, or promoted.
          enum:
            - waiting
            - superseded
            - promoted
          type: string
        revision:
          description: The revision's number within the agent, from 1.
          format: int64
          type: integer
      required:
        - id
        - agent_id
        - revision
        - kind
        - author_user_id
        - bytes
        - created_at
      type: object
    V2ErrorDetail:
      additionalProperties: false
      description: >-
        One specific problem within an error response, locating the offending
        part of the request.
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    apiKeyAuth:
      description: Customer API key (axl_ prefix).
      in: header
      name: X-Axilio-Api-Key
      type: apiKey

````

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