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

> Lists the organization's agents, newest first, one page at a time.

Minimum role required: Viewer


## OpenAPI

````yaml /api-reference/openapi-backend.json get /agents
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:
    get:
      tags:
        - Agents
      summary: List agents
      description: Lists the organization's agents, newest first, one page at a time.
      operationId: agents_list
      parameters:
        - 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
        - description: Narrow to agents whose name or id contains this, case-insensitively.
          explode: false
          in: query
          name: search
          schema:
            description: >-
              Narrow to agents whose name or id contains this,
              case-insensitively.
            maxLength: 200
            type: string
        - description: >-
            Narrow to agents whose current revision is instructions or code.
            Omit for both.
          explode: false
          in: query
          name: kind
          schema:
            description: >-
              Narrow to agents whose current revision is instructions or code.
              Omit for both.
            enum:
              - ''
              - instructions
              - code
            type: string
        - description: Only agents created at or after this time (RFC 3339).
          explode: false
          in: query
          name: created_after
          schema:
            description: Only agents created at or after this time (RFC 3339).
            format: date-time
            type: string
        - description: Only agents created at or before this time (RFC 3339).
          explode: false
          in: query
          name: created_before
          schema:
            description: Only agents created at or before this time (RFC 3339).
            format: date-time
            type: string
        - description: Only agents last run at or after this time (RFC 3339).
          explode: false
          in: query
          name: last_run_after
          schema:
            description: Only agents last run at or after this time (RFC 3339).
            format: date-time
            type: string
        - description: Only agents last run at or before this time (RFC 3339).
          explode: false
          in: query
          name: last_run_before
          schema:
            description: Only agents last run at or before this time (RFC 3339).
            format: date-time
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentList'
          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
        '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:
    AgentList:
      additionalProperties: false
      description: One page of the organization's agents, newest first.
      properties:
        agents:
          description: The agents on this page.
          items:
            $ref: '#/components/schemas/Agent'
          type:
            - array
            - 'null'
        limit:
          description: The page size.
          format: int64
          type: integer
        offset:
          description: Where this page starts.
          format: int64
          type: integer
        total:
          description: How many agents match.
          format: int64
          type: integer
      required:
        - agents
        - 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
    Agent:
      additionalProperties: false
      description: >-
        An agent: a task for a phone, as instructions the agent works through a
        model or as code, with the settings its runs use.
      properties:
        accessibility_enabled:
          description: Runs use accessibility mode, which needs a phone that supports it.
          type: boolean
        capture_enabled:
          description: >-
            Runs capture the media they produce on the phone into the file
            library.
          type: boolean
        created_at:
          description: When the agent was created.
          format: date-time
          type: string
        current_revision_id:
          description: The revision runs of the agent use. Absent until the agent has one.
          format: uuid
          type: string
        id:
          description: The agent's id.
          format: uuid
          type: string
        last_run_at:
          description: When a run of the agent last started.
          format: date-time
          type: string
        max_cost_microdollars:
          description: Most a run's model steps may cost, in microdollars.
          format: int64
          type: integer
        max_steps:
          description: Most model steps a run may take.
          format: int64
          type: integer
        model:
          description: The model an instructions revision's runs call, one of GET /models.
          type: string
        name:
          description: The agent's name, unique within the organization.
          type: string
        output_schema:
          additionalProperties: {}
          description: >-
            The JSON Schema a run's result must satisfy. Absent takes any
            result.
          type: object
        pause_timeout_seconds:
          description: >-
            Longest a run waits paused for an answer, in seconds, before it
            fails with input_timeout. A pause also ends with the session.
          format: int64
          type: integer
        recording_enabled:
          description: Runs record the screen.
          type: boolean
        telemetry_enabled:
          description: Runs emit telemetry, live and stored.
          type: boolean
        timeout_seconds:
          description: Longest a run may take, in seconds, within the one-hour session cap.
          format: int64
          type: integer
        updated_at:
          description: When the agent was last changed.
          format: date-time
          type: string
      required:
        - id
        - name
        - model
        - max_steps
        - max_cost_microdollars
        - timeout_seconds
        - pause_timeout_seconds
        - recording_enabled
        - telemetry_enabled
        - capture_enabled
        - accessibility_enabled
        - created_at
        - updated_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.