> ## 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 agent secrets



## OpenAPI

````yaml /api-reference/ageneral-agents-openapi.json get /v1/agents/{agent_id}/secrets
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/{agent_id}/secrets:
    get:
      tags:
        - Agent secrets
      summary: List agent secrets
      operationId: listAgentSecrets
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAgentSecretsResponse'
        '401':
          description: Missing or invalid session.
        '404':
          description: Agent not found.
      security:
        - bearerAuth: []
components:
  schemas:
    ListAgentSecretsResponse:
      type: object
      properties:
        names:
          type: array
          items:
            type: string
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Session JWT from Ageneral sign-in. Send as `Authorization: Bearer
        <token>`.

````