---
title: "View a Credential"
description: "Retrieve the full details of a single credential stored in a wallet by its ID."
stack: "Community Stack (open source) — version 0.21.0"
stack_version: "0.21.0"
stack_comparison: https://docs.walt.id/community-vs-enterprise.md
canonical_url: https://docs.walt.id/community-stack/wallet/credential-management/view-credential
generated: 2026-07-20
---
# View a Credential

Retrieve the full details of a single credential stored in a wallet by its ID.

To view a credential, you first need its `id`. See [List Credentials](https://docs.walt.id/community-stack/wallet/credential-management/list-credentials.md) for how to retrieve it.

## View a Credential

**Option: CURL**

**Endpoint:** `GET /wallet-api/wallet/{walletId}/credentials/{credentialId}` | [API Reference](https://wallet.demo.walt.id/swagger/index.html#/WalletCredentials/get_wallet_api_wallet__wallet__credentials__credentialId_)

##### Example Request

```bash
curl -X 'GET' \
  'http://0.0.0.0:7001/wallet-api/wallet/{walletId}/credentials/{credentialId}' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer {token}'
```

**Path Parameters**

- `walletId`: _String_ - The ID of the wallet containing the credential. See [Accounts & Wallets](https://docs.walt.id/community-stack/wallet/accounts-wallets.md#retrieve-wallet-id) for how to retrieve it.
- `credentialId`: _String_ - The `id` of the credential to retrieve (e.g. `urn:uuid:c2f7e988-a4cb-48c2-bbf6-ed97f6010abe`). See [List Credentials](https://docs.walt.id/community-stack/wallet/credential-management/list-credentials.md) for how to retrieve it.

**Header Parameters**

- `Authorization`: _String_ - Bearer token obtained from the [login endpoint](https://docs.walt.id/community-stack/wallet/authentication/email-password-auth.md#login). Format: `Bearer {token}`.

---

##### Example Response

The API returns a single credential object with the raw credential document, the parsed credential, and metadata.

```json
{
  "wallet": "6006b6f4-e651-46db-b6ae-e7bd6e9c40f2",
  "id": "urn:uuid:c2f7e988-a4cb-48c2-bbf6-ed97f6010abe",
  "document": "eyJraWQiOiJkaWQ6...",
  "disclosures": "WyJ3N204WTdYc1d5NWtTYTFpaG1WVXJBIiwiYmlydGhkYXRlIiwiMTk0MC0wMS0wMSJd",
  "addedOn": "2026-04-16T15:08:01.604768543Z",
  "deletedOn": null,
  "pending": false,
  "format": "vc+sd-jwt",
  "parsedDocument": {
    "given_name": "John",
    "family_name": "Doe",
    "id": "urn:uuid:c2f7e988-a4cb-48c2-bbf6-ed97f6010abe",
    "iss": "did:key:z6Mkjo...",
    "vct": "http://localhost:7002/identity_credential"
  }
}
```

**Response Fields**

- `wallet`: The ID of the wallet the credential belongs to.
- `id`: The unique credential ID, used in other operations such as [deleting a credential](https://docs.walt.id/community-stack/wallet/credential-management/delete-credential.md).
- `document`: The raw credential string. For JWT-based credentials this is the encoded JWT (starts with `ey`); for JSON-LD credentials this is the full JSON document with proof.
- `disclosures`: Base64url-encoded SD-JWT disclosures string. Empty for non-SD-JWT credentials.
- `addedOn`: ISO 8601 timestamp of when the credential was stored in the wallet.
- `deletedOn`: ISO 8601 timestamp of when the credential was soft-deleted, or `null` if the credential is active.
- `pending`: Whether the credential is awaiting acceptance or rejection.
- `format`: The credential format (e.g. `jwt_vc_json`, `ldp_vc`, `vc+sd-jwt`).
- `parsedDocument`: The decoded credential payload as a JSON object. The structure varies by credential type and format.

| Status | Description |
|--------|-------------|
| `200`  | Credential returned successfully |
| `404`  | Credential not found for the given `credentialId` |
