Claude Platform Docs

List Credentials

$ ant beta:vaults:credentials list
GET/v1/vaults/{vault_id}/credentials

List Credentials

Parameters
--vault-id: string

Path param: Path parameter vault_id

--include-archived: optional boolean

Query param: Whether to include archived credentials in the results.

--limit: optional number

Query param: Maximum number of credentials to return per page. Defaults to 20, maximum 100.

formatint32
--page: optional string

Query param: Opaque pagination token from a previous list_credentials response.

--beta: optional array of AnthropicBeta

Header param: Optional header to specify the beta version(s) you want to use.

Returns
BetaManagedAgentsListCredentialsResponse: object{ data, next_page }

Response containing a paginated list of credentials.

data: optional array of BetaManagedAgentsCredential { id, archived_at, auth, 6 more }

List of credentials.

id: string

Unique identifier for the credential.

archived_at: string

A timestamp in RFC 3339 format

formatdate-time
auth: BetaManagedAgentsMCPOAuthAuthResponse { mcp_server_url, type, expires_at, refresh } or BetaManagedAgentsStaticBearerAuthResponse { mcp_server_url, type } or BetaManagedAgentsEnvironmentVariableAuthResponse { injection_location, networking, secret_name, type }

Authentication details for a credential.

One of the following:
beta_managed_agents_mcp_oauth_auth_response: object{ mcp_server_url, type, expires_at, refresh }

OAuth credential details for an MCP server.

beta_managed_agents_static_bearer_auth_response: object{ mcp_server_url, type }

Static bearer token credential details for an MCP server.

mcp_server_url: string

URL of the MCP server this credential authenticates against.

type: "static_bearer"
beta_managed_agents_environment_variable_auth_response: object{ injection_location, networking, secret_name, type }

Environment variable credential details. The secret value is never returned.

created_at: string

A timestamp in RFC 3339 format

formatdate-time
metadata: map[string]

Arbitrary key-value metadata attached to the credential.

type: "vault_credential"
updated_at: string

A timestamp in RFC 3339 format

formatdate-time
vault_id: string

Identifier of the vault this credential belongs to.

display_name: optional string

Human-readable name for the credential.

next_page: optional string

Pagination token for the next page, or null if no more results.

List Credentials

ant beta:vaults:credentials list \
  --api-key my-anthropic-api-key \
  --vault-id vlt_011CZkZDLs7fYzm1hXNPeRjv
{
  "data": [
    {
      "id": "vcrd_011CZkZEMt8gZan2iYOQfSkw",
      "archived_at": null,
      "auth": {
        "mcp_server_url": "https://example-server.modelcontextprotocol.io/sse",
        "type": "static_bearer"
      },
      "created_at": "2026-03-15T10:00:00Z",
      "metadata": {
        "environment": "production"
      },
      "type": "vault_credential",
      "updated_at": "2026-03-15T10:00:00Z",
      "vault_id": "vlt_011CZkZDLs7fYzm1hXNPeRjv",
      "display_name": "Example credential"
    }
  ],
  "next_page": "page_MjAyNS0wNS0xNFQwMDowMDowMFo="
}
Returns Examples
{
  "data": [
    {
      "id": "vcrd_011CZkZEMt8gZan2iYOQfSkw",
      "archived_at": null,
      "auth": {
        "mcp_server_url": "https://example-server.modelcontextprotocol.io/sse",
        "type": "static_bearer"
      },
      "created_at": "2026-03-15T10:00:00Z",
      "metadata": {
        "environment": "production"
      },
      "type": "vault_credential",
      "updated_at": "2026-03-15T10:00:00Z",
      "vault_id": "vlt_011CZkZDLs7fYzm1hXNPeRjv",
      "display_name": "Example credential"
    }
  ],
  "next_page": "page_MjAyNS0wNS0xNFQwMDowMDowMFo="
}