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

> Lists your agents, newest first. Listings don't include the config. Use [Get agent](/api-reference/agents/get-agent) for that.



## OpenAPI

````yaml /api-reference/rest/openapi.yaml get /v1/agents
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:
    get:
      tags:
        - Agents
      summary: List agents
      description: >-
        Lists your agents, newest first. Listings don't include the config. Use
        [Get agent](/api-reference/agents/get-agent) for that.
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            default: 1
        - name: perPage
          in: query
          schema:
            type: integer
            default: 20
        - name: query
          in: query
          description: Filter by agent id.
          schema:
            type: string
      responses:
        '200':
          description: A page of agents.
          content:
            application/json:
              schema:
                type: object
                properties:
                  pageInfo:
                    $ref: '#/components/schemas/PageInfo'
                  agents:
                    type: array
                    items:
                      $ref: '#/components/schemas/Agent'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    PageInfo:
      type: object
      properties:
        currentPage:
          type: integer
          example: 1
        perPage:
          type: integer
          example: 20
        lastPage:
          type: integer
          example: 1
        total:
          type: integer
          example: 2
    Agent:
      type: object
      properties:
        agentId:
          type: string
          example: ag_7f2c91
        name:
          type: string
          example: Support Agent
        status:
          type: string
          enum:
            - inactive
            - active
          description: >-
            `active` once deployed. A new agent stays `inactive` only if its
            first deploy couldn't run, for example when the account has no
            active API key. Call [Deploy
            agent](/api-reference/deployment/deploy-agent) yourself then.
          example: active
        deploymentId:
          type: string
          example: dp_44b1e0
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
  responses:
    Unauthorized:
      description: Missing or invalid `Authorization` header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  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.