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 for how to retrieve it.

View a Credential

CURL

Endpoint: GET /wallet-api/wallet/{walletId}/credentials/{credentialId} | API Reference

Example Request
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 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 for how to retrieve it.

Header Parameters

  • Authorization: String - Bearer token obtained from the login endpoint. Format: Bearer {token}.

Example Response

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

{
  "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.
  • 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.
StatusDescription
200Credential returned successfully
404Credential not found for the given credentialId
Last updated on April 29, 2026