Sample - OpenAI API
GET/vaults/{vault_id}/credentials/{credential_id}

Retrieve a vault credential

Retrieves vault credential metadata without returning secret values. See vaults.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
vault_idstringrequired
The ID of the vault.
credential_idstringrequired
The ID of the vault credential.

8 status codes
200The requested vault credential without secret values.
idstringrequired
The ID of the credential.
objectstringrequired
The object type. Always `vault.credential`.
Allowed:vault.credentialDefault:vault.credential
vault_idstringrequired
The ID of the vault containing this credential.
namestringrequired
The human-readable name of the credential.
authobjectrequired
The authentication method and non-secret configuration for the MCP server.
created_atintegerrequired
The Unix timestamp, in seconds, when the credential was created.
updated_atintegerrequired
The Unix timestamp, in seconds, when the credential was last updated.
400The request was invalid.
errorobjectrequired
The error returned by the API.
401Authentication or project context was missing.
errorobjectrequired
The error returned by the API.
403The API key lacks the required management permission.
errorobjectrequired
The error returned by the API.
404The requested vault or credential was not found.
errorobjectrequired
The error returned by the API.
409The request conflicted with the current vault state.
errorobjectrequired
The error returned by the API.
500An internal error occurred.
errorobjectrequired
The error returned by the API.
503The service is temporarily unavailable.
errorobjectrequired
The error returned by the API.

Error handling

A 400 is returned: The request was invalid. A 401 is returned: Authentication or project context was missing. A 403 is returned: The API key lacks the required management permission. A 404 is returned: The requested vault or credential was not found. A 409 is returned: The request conflicted with the current vault state. A 500 is returned: An internal error occurred. A 503 is returned: The service is temporarily unavailable.