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

# List versions

> Lists every version of the agent, newest first.



## OpenAPI

````yaml /api-reference/rest/openapi.yaml get /v1/agents/{agentId}/versions
openapi: 3.1.0
info:
  title: Zero Runtime REST API
  version: '1.0'
  description: >-
    Create, configure, version and deploy agents, and wire SIP telephony to
    them.
servers:
  - url: https://api.zeroruntime.ai
security:
  - token: []
tags:
  - name: Agents
  - name: Versions
  - name: Deployment
  - name: Phone numbers
  - name: Routing rules
  - name: Calls
  - name: Batch calls
  - name: Knowledge bases
  - name: Knowledge base folders
paths:
  /v1/agents/{agentId}/versions:
    parameters:
      - $ref: '#/components/parameters/agentId'
    get:
      tags:
        - Versions
      summary: List versions
      description: Lists every version of the agent, newest first.
      responses:
        '200':
          description: Every version of the agent.
          content:
            application/json:
              schema:
                type: object
                properties:
                  agentId:
                    type: string
                    example: ag_7f2c91
                  versions:
                    type: array
                    items:
                      type: object
                      properties:
                        versionId:
                          type: string
                          example: cm_5a77e2
                        name:
                          type: string
                          example: Tweaked greeting
                        createdAt:
                          type: string
                          format: date-time
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    agentId:
      name: agentId
      in: path
      required: true
      schema:
        type: string
      example: ag_7f2c91
  responses:
    Unauthorized:
      description: Missing or invalid `Authorization` header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: No such resource on this account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    token:
      type: apiKey
      in: header
      name: Authorization
      description: Your API token, sent raw (no `Bearer` prefix).
      x-default: <auth-token>

````

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