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

# List agents

> Lists the agents that have run in your organization, each with its latest revision.




## OpenAPI

````yaml /openapi/openapi.yaml get /agents
openapi: 3.0.3
info:
  title: Albus API
  description: Albus service REST API
  version: 1.0.0
servers:
  - url: https://albus.sh/api
    description: Production server
  - url: http://localhost:8080
    description: Local development server
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Agents
    description: Inspect the agents that have run in your organization.
  - name: Auth
    description: Identify the authenticated user.
  - name: Health
    description: Check service availability.
  - name: Secrets
    description: Manage secrets available to agent sessions.
  - name: Sessions
    description: Run and inspect agent sessions.
  - name: Tokens
    description: Manage organization API keys.
paths:
  /agents:
    get:
      tags:
        - Agents
      summary: List agents
      description: >
        Lists the agents that have run in your organization, each with its
        latest revision.
      operationId: listAgents
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAgentsResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrUnauthorized'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    ListAgentsResponse:
      type: object
      required:
        - agents
      properties:
        agents:
          type: array
          items:
            $ref: '#/components/schemas/AgentMeta'
    ErrUnauthorized:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          description: Human-readable error message
          example: Invalid or expired token
    AgentMeta:
      type: object
      description: A row in the agent list — an agent's identity and activity.
      required:
        - name
        - revision_count
        - created_at
        - updated_at
      properties:
        name:
          type: string
          description: The agent's name.
        revision_count:
          type: integer
          format: int64
          description: Number of distinct revisions of this agent.
        created_at:
          type: string
          format: date-time
          description: When the agent first ran.
        updated_at:
          type: string
          format: date-time
          description: When the agent last ran.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: http
      scheme: bearer
      description: Org-scoped API key issued via POST /tokens

````