---
title: "列出 Credential"
method: GET
path: "/agent/managed/v1/vaults/{vaultId}/credentials"
tags: ["Managed Agents - Vault"]
---

# 列出 Credential

`GET /agent/managed/v1/vaults/{vaultId}/credentials`

## Request

- Base URL: `https://agent-api.bigmodel.cn/api`
- URL: `https://agent-api.bigmodel.cn/api/agent/managed/v1/vaults/{vaultId}/credentials`
- Auth: HTTP bearer

分页列出指定 Vault 中的 Credential 元数据和认证类型。密钥、Token 等敏感值不会在响应中返回。

## Path parameters

- `vaultId` string, required

## Query parameters

- `limit` integer
- `page` string
- `include_archived` boolean

## Headers

- `zai-version` '2026-05-26', required
- `zai-beta` string, required

## Response `200`

请求成功。

- ManagedCredentialPage
  - `data` ManagedCredential[], required
    - `type` 'vault_credential', required
    - `id` string, required
    - `display_name` string, required
    - `vault_id` string, required
    - `metadata` ManagedMetadata, required: 客户端自定义元数据；省略时默认为空对象。最多 16 个键，键名长度不超过 64 字符，值必须是长度不超过 512 字符的字符串。
    - `auth` union, required
      - object
        - `type` 'mcp_oauth', required
        - `mcp_server_url` string, uri, nullable, required: 公开 HTTPS Streamable HTTP URL；不得包含凭据、fragment、空 query 或旧式 SSE 路径。
        - `expires_at` string, date-time, nullable, required
        - `refresh` ManagedOAuthRefreshResponse, required
          - `token_endpoint` string, uri, required: HTTPS URL；不得包含凭据或 fragment。
          - `client_id` string, required
          - `token_endpoint_auth` object, required
            - `type` 'none' | 'client_secret_basic' | 'client_secret_post', required
          - `scope` string, nullable, required
          - `resource` string, nullable, required
      - object
        - `type` 'static_bearer', required
        - `mcp_server_url` string, uri, nullable, required: 公开 HTTPS Streamable HTTP URL；不得包含凭据、fragment、空 query 或旧式 SSE 路径。
      - object
        - `type` 'oauth', required
        - `host` string, uri, nullable, required: HTTPS origin；不得包含路径、query、fragment 或凭据。
        - `expires_at` string, date-time, nullable, required
        - `refresh` ManagedOAuthRefreshResponse, required
          - `token_endpoint` string, uri, required: HTTPS URL；不得包含凭据或 fragment。
          - `client_id` string, required
          - `token_endpoint_auth` object, required
            - `type` 'none' | 'client_secret_basic' | 'client_secret_post', required
          - `scope` string, nullable, required
          - `resource` string, nullable, required
      - object
        - `type` 'bearer', required
        - `host` string, uri, nullable, required: HTTPS origin；不得包含路径、query、fragment 或凭据。
      - object
        - `type` 'environment_variable', required
        - `secret_name` string, nullable, required
        - `networking` union, required
          - object
            - `type` 'unrestricted', required
          - object
            - `type` 'limited', required
            - `allowed_hosts` string[], required: 允许注入凭据的目标 host，最多 16 个；支持 IPv4、hostname 或 *.example.com 通配形式，不得包含协议、端口或路径。
        - `injection_location` ManagedVaultInjectionLocationResponse, required
          - `header` boolean, required
          - `body` false, required
    - `created_at` string, date-time, required: 创建时间。
    - `updated_at` string, date-time, required: 更新时间。
    - `archived_at` string, nullable, required: 归档时间。
  - `next_page` string, nullable, required

## Other responses

- `default`: 请求失败。

## Changes

- **2026-11-03** `7fd61aa7f811`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bigmodel/apis/zhipu-ai-api/changes/agent/managed/v1/vaults/:vaultId/credentials/get.md)

---

[API](https://skmtc.dev/bigmodel/apis/zhipu-ai-api.md) - [All operations](https://skmtc.dev/bigmodel/apis/zhipu-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bigmodel/apis/zhipu-ai-api/revisions/f2be7c0fcbb9?raw)
