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

# List agents



## OpenAPI

````yaml /api-reference/ageneral-agents-openapi.json get /v1/agents
openapi: 3.1.0
info:
  title: Agents
  version: 1.0.0
  description: >-
    Create and manage **agents**, enable **connectors**, manage **secrets**,
    poll **long-running operations**, and call selected **OpenClaw** helpers.


    **Base URL:** `https://ageneral.ai`.


    **JSON** request and response bodies use **camelCase** field names (protobuf
    JSON mapping).


    **Authentication:** `Authorization: Bearer <session JWT>` from Ageneral
    sign-in unless a route notes otherwise.


    **CreateAgent** returns a standard **`google.longrunning.Operation`**. Poll
    it with **Get operation** until **`done`** is true, then read **`response`**
    for the created **Agent**.
  contact:
    name: Ageneral
    url: https://ageneral.ai
servers:
  - url: https://ageneral.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Agents
    description: Agent CRUD and listing.
  - name: Agent connectors
    description: Enable or disable catalog connectors for an agent.
  - name: Agent secrets
    description: List, put, and delete secret names for an agent.
  - name: Operations
    description: Poll long-running operations (for example after CreateAgent).
  - name: OpenClaw
    description: Agent-scoped OpenClaw helpers served over HTTPS.
paths:
  /v1/agents:
    get:
      tags:
        - Agents
      summary: List agents
      operationId: listAgents
      parameters:
        - name: project_id
          in: query
          required: true
          schema:
            type: string
          description: Project id whose agents you want to list.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAgentsResponse'
        '401':
          description: Missing or invalid session.
        '403':
          description: Forbidden.
      security:
        - bearerAuth: []
components:
  schemas:
    ListAgentsResponse:
      type: object
      properties:
        agents:
          type: array
          items:
            $ref: '#/components/schemas/Agent'
      additionalProperties: true
    Agent:
      type: object
      description: Agent resource. Additional fields may appear.
      properties:
        id:
          type: string
        projectId:
          type: string
        name:
          type: string
        lifecycleState:
          type: string
        guest:
          type: string
        runtimeProvider:
          type: string
        connectorSlugs:
          type: array
          items:
            type: string
        runtime:
          type: object
          additionalProperties: true
        createdAt:
          type: string
        updatedAt:
          type: string
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Session JWT from Ageneral sign-in. Send as `Authorization: Bearer
        <token>`.

````