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

# List agent secret names

> Lists the names of secrets as stored in the Matillion Hosted Customer Vault (MHCV) associated with the given Agent. Only supported for Maia Hosted Runners: if `agentId` identifies a customer-hosted runner, the request fails, since that runner has no MHCV configured.

Paginated with `paginationToken` and `limit`: the response's `more` token, when present, is passed back as `paginationToken` to retrieve the next page. Passing the same token twice returns the same page.



## OpenAPI

````yaml /openapi/public-api-endpoint-reference.yaml get /v1/agents/{agentId}/secrets
openapi: 3.1.0
info:
  title: Maia Public REST API
  version: '1.0'
servers:
  - description: EU1
    url: https://eu1.api.matillion.com/dpc
  - description: US1
    url: https://us1.api.matillion.com/dpc
  - description: AU1
    url: https://au1.api.matillion.com/dpc
  - description: EU2
    url: https://eu2.api.matillion.com/dpc
security:
  - bearerAuth: []
tags:
  - description: Operations for managing Project Variables
    name: Project Variables
  - description: Manage Pipelines
    name: Pipelines
  - description: >-
      Describe how to configure a connection for a given auth provider, auth
      type and platform connection type.
    name: Connection Schema
  - description: Manage your AI agent tasks
    name: AI Agent Tasks
  - description: SCIM endpoints for user/group permission management
    name: Directory Integration
  - description: Manage Artifacts
    name: Artifacts
  - description: Manage Streaming Pipelines
    name: Streaming Pipelines
  - description: ''
    name: Projects
  - description: Connector Profiles
    name: Connectors
  - description: >-
      Validate Matillion resources against the Vanguard validation framework.
      Pipeline resource files (orchestration, transformation, test) are the only
      supported resource type today; support for additional resource types (e.g.
      SQL scripts or Python source files) is anticipated in future.
    name: Resource Validation
  - description: Manage Schedules
    name: Schedules
  - description: Manage Connections
    name: Connections
  - description: Review pipelines against quality rules
    name: Pipeline Quality Review
  - description: Execute tests within a project
    name: Test Execution
  - description: Publish shared pipeline artifacts
    name: Shared Pipeline Artifacts
  - description: Manage Repositories
    name: Repositories
  - description: Report on Credit Consumption
    name: Consumption
  - description: >-
      Start and track the migration of a Git repository into a project's working
      tree.
    name: Repository Migration
  - description: Operations for data lineage and governance
    name: Data Lineage
  - description: Manage Runners
    name: Runners
  - description: Execute a pipeline
    name: Pipeline Execution
  - description: ''
    name: Environments
  - description: Operations for managing Environment-level Overrides of Project Variables
    name: Project Variable Environment Overrides
  - description: Manage secrets stored in an Agent's Matillion-hosted vault.
    name: Agent Secrets
  - description: Query audit events
    name: Audit Events
paths:
  /v1/agents/{agentId}/secrets:
    get:
      tags:
        - Agent Secrets
      summary: List agent secret names
      description: >-
        Lists the names of secrets as stored in the Matillion Hosted Customer
        Vault (MHCV) associated with the given Agent. Only supported for Maia
        Hosted Runners: if `agentId` identifies a customer-hosted runner, the
        request fails, since that runner has no MHCV configured.


        Paginated with `paginationToken` and `limit`: the response's `more`
        token, when present, is passed back as `paginationToken` to retrieve the
        next page. Passing the same token twice returns the same page.
      operationId: listSecrets
      parameters:
        - description: The ID of the agent whose vault the secrets are stored in.
          in: path
          name: agentId
          required: true
          schema:
            type: string
        - description: >-
            Opaque token from a previous page's `more` field. Omit to retrieve
            the first page.
          in: query
          name: paginationToken
          required: false
          schema:
            type: string
        - description: >-
            The maximum number of secret names to return in this page (1-1000).
            Defaults to 100.
          in: query
          name: limit
          required: false
          schema:
            type: integer
            format: int32
            default: 100
            maximum: 1000
            minimum: 1
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScrollResultListString'
          description: >-
            The requested page of secret names. An empty `results` array means
            the runner holds no secrets, not a 404.
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Invalid request
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Forbidden
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unexpected error occurred
        '504':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Gateway timeout
components:
  schemas:
    ScrollResultListString:
      type: object
      properties:
        more:
          type: string
          description: >-
            Token for fetching the next batch of results for this query; if
            omitted then there are no more.
        results:
          type: array
          description: Results of query
          items:
            type: string
    ProblemDetail:
      type: object
      properties:
        detail:
          type: string
        instance:
          type: string
        status:
          type: integer
          format: int32
        title:
          type: string
        type:
          type: string
          format: uri
        violations:
          type: array
          items:
            type: string
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: a valid bearer token
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.