Skip to main content
GET
Get a Vault credential

Headers

kimi-api-version
enum<string>

API version for this request, in YYYY-MM-DD form. Send 2026-09-01-beta for the version documented here. Required outside /v1/files*: a missing header there is rejected with 400 invalid_request_error; on /v1/files* its absence selects the compatibility behavior. An unknown value is rejected with 400 invalid_request_error on every endpoint. API versions served by the platform. New dated versions are added as they ship; a version is removed after its announced Sunset date.

Available options:
2026-09-01-beta

Path Parameters

id
string
required

Vault ID.

credential_id
string
required

Vault credential ID.

Response

The credential, with secret values omitted.

A credential stored in a Vault. Active credentials in the same Vault must have distinct keys. The key is the normalized mcp_server_url for mcp_oauth and static_bearer, or secret_name for environment_variable.

id
string
required

Vault credential ID.

Example:

"vcrd_01h455vb4pex5vsknk084sn02q"

vault_id
string
required

ID of the Vault that contains this credential.

Example:

"vlt_01h455vb4pex5vsknk084sn02q"

display_name
string
required

Human-readable credential name.

Example:

"MCP access"

auth
MCP OAuth credential · object
required

OAuth 2.0 credentials for an MCP server, with optional token refresh.

Example:
created_at
string<date-time>
required

Time when the credential was created.

Example:

"2026-01-01T00:00:00Z"

updated_at
string<date-time>
required

Time when the credential was last updated.

Example:

"2026-01-01T00:00:00Z"

archived_at
string<date-time>

Time when the credential was archived. This field is omitted for active credentials.

Example:

"2026-01-03T00:00:00Z"