LoomalLoomal
API ReferenceVault

Get Credential

Get a decrypted credential by name

Scope: vault:read

Returns the decrypted credential. TOTP secrets are redacted — use the TOTP endpoint instead.

Request

curl https://api.loomal.ai/v0/vault/stripe \
  -H "Authorization: Bearer mgent-your-api-key"

Response

{
  "credentialId": "cred_abc123",
  "type": "API_KEY",
  "name": "stripe",
  "metadata": { "service": "stripe", "prefix": "sk_live_...c123" },
  "data": { "key": "sk_live_abc123..." },
  "hasTOTP": false,
  "expiresAt": null,
  "lastUsedAt": "2026-03-30T10:00:00Z",
  "lastRotatedAt": null,
  "createdAt": "2026-03-29T03:00:00Z"
}

If the credential has a TOTP secret, data.secret is replaced with "[use /v0/vault/:name/totp]" and hasTOTP is true.

On this page