> For the complete documentation index, see [llms.txt](https://docs.inji.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inji.io/inji-verify/functional-overview/end-user-guide/vp-verification-using-the-digital-credentials-dc-api.md).

# VP Verification using the Digital Credentials (DC) API

### Overview

The Digital Credentials API (DC API) lets Inji Verify request credentials directly through the browser, instead of sending the wallet a QR code or a deep link. The browser itself (Chrome) acts as the broker: it discovers the wallets available on the device, shows the consent screen, and returns the Verifiable Presentation to Inji Verify.

Inji Verify supports DC API through following Use-cases:

* **Same Device (Mobile)**: Verifier and wallet are on the same mobile device.
* **Cross Device from Desktop**: Verifier runs on a desktop browser; the credential lives in a wallet on a mobile device. The browser generates the QR code.
* **Cross Device from Mobile**: Verifier runs on a mobile browser; the credential lives in a wallet on a second mobile device.

**Pre-requisites**

* Chrome (or a Chromium-based browser) with Digital Credentials API support.
* A DC API–compatible wallet installed on the device holding the credential (for example, the Multipaz wallet or CMWallet - for interop testing we have used mentioned Wallet’s).
* The Inji Verify portal must be served over HTTPS.

### Same Device Flow (Mobile)

#### Step 1: Initiate VP Request Process

* Open the Inji Verify portal on your mobile device and navigate to the **‘VP Verification’** tab, the stepper shows four stages of the flow:
  * 1 - Initiate VP Request Process.
  * 2 - Select Credential Types.
  * 3 - Share Verifiable Credentials from Wallet.
  * 4 - View Verification Results.
* Click **‘Request Verifiable Credentials’** to begin.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-e6355de3c323ebdc9abd766af2d9687979e055f8%2Feug-iv-dcapi-image1.png?alt=media" alt=""><figcaption><p>Mobile View</p></figcaption></figure>

#### Step 2: Select Credential Types

* The **‘Verifiable Credential Selection Panel’** popup appears.
* Search using the **Search VC Type** box or reorder the list using **Sort by**, then check-select the credentials you want to request (for an example, **EU Personal ID (SD-JWT)**). Some credentials may already be pre-selected based on configuration.
* Three action buttons are available:
  * **Generate QR Code** - Cross-device flow (Wallet on another device).
  * **Open Wallet** - DC API flow (Wallet on this device).
  * **Open Web Wallets** - Browser-based wallets.
* Click **‘Open Wallet’** to continue with the DC API flow.
* If you do not wish to proceed, click **Go Back** to return to the ‘VP Verification’ tab.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-7eae547874ecd2cd6fee40481906f96d3a190fab%2Feug-iv-dcapi-image2.png?alt=media" alt=""><figcaption><p>Mobile View</p></figcaption></figure>

#### Step 3: Grant Browser Permission to Access the Digital Wallet

* The browser displays the prompt **“Do you trust this site with your data?”**, stating that the Inji Verify site wants to use personal info from your digital wallet.
  * Click **Continue** to allow the browser to query the wallets on your device.
  * Clicking **Cancel** aborts the request and returns you to the ‘VP Verification’ screen.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-fed902741b62ca8b2b215b1a3cfb54272c7249d7%2Feug-iv-dcapi-image3.png?alt=media" alt=""><figcaption><p>Mobile View</p></figcaption></figure>

#### Step 4: Review the Credential in the Browser ‘Share info’ Sheet

* The browser opens the **‘Share info’** sheet listing every credential on the device that matches the request, along with the issuer name.
* Under **‘This information will be shared:’** the sheet lists exactly the claims that will be disclosed - for example, *given\_name*, *family\_name*, *age\_equal\_or\_over.18*.
  * Tap **View details** or the **›** arrow on a credential to inspect it further.
    * If more than one credential matches, scroll the list and select the one you want to present, Two actions are available:
      * **Agree and continue** - Proceed with the selected credential on this device.
      * **Switch device** - Hand the request over to a wallet on another device (see Flow C).
* Click **‘Agree and continue’**.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-761f91c0aafd3eed7d70bdcbef1a8d1c5d4e2341%2Feug-iv-dcapi-image4.png?alt=media" alt=""><figcaption><p>Mobile View - matching credential (Erika’s PID, ARF 1.8)</p></figcaption></figure>

Mobile View - matching credential (Erika’s PID, ARF 1.8)

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-c704a8051ede5cebda76e168a83d51adf35f79e2%2Feug-iv-dcapi-image5.png?alt=media" alt=""><figcaption><p>Mobile View - a second matching credential (Lee’s PID) with View details</p></figcaption></figure>

#### Step 5: Authenticate and Consent in the Wallet

* The selected wallet application (for example, the **Multipaz Test App**) opens and displays the credential card along with the requesting origin.
  * The wallet lists the data that will be shared with the verifier — *Given names*, *Family name*, *Older than 18*.
  * The wallet may show a caution banner such as **“The website requesting this data is unknown. Make sure you are comfortable sharing this data”** when the verifier is not on a trusted verifier list.
* Authenticate if prompted, then click **Share** to consent. Click **Cancel** to abort.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-beb87678485f968e548c456e24e676ce6d2912b8%2Feug-iv-dcapi-image6.png?alt=media" alt=""><figcaption><p>Mobile View</p></figcaption></figure>

Mobile View

#### Step 6: Presentation Returned to Inji Verify

* The wallet shows the confirmation **“The info was shared”** and the browser automatically returns to the Inji Verify tab.
* Inji Verify receives the `vp_token` through the browser, validates it, and moves the stepper to step 4 — **View Verification Results**.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-7c9ecf713ac497d2d838214cf7d4d5437dda01dc%2Feug-iv-dcapi-image7.png?alt=media" alt=""><figcaption><p>Mobile View</p></figcaption></figure>

#### Step 7: View Verification Results

* Inji Verify displays the outcome of the verification. For a valid credential, the banner reads **“Congratulations, the given credential is valid!”** with a **Valid** status chip against the credential type (for example, `Urn:eudi:pid:1`).
* The result card shows:
  * **Status** — Including the revocation `status_list` index and URI, where available.
  * The disclosed claims and their values (for example, *Given\_name: Lee*, *Family\_name: Tom*, *Age\_equal\_or\_over 18: true*).
  * An **eye icon** next to each claim. As the on-screen note explains, *“Fields next to this icon indicate that the information was shared selectively by the wallet holder.”*
* Use the **download** icon to save the credential data as a JSON file, and the **full screen** option to view it enlarged.
* Credential status may be **Valid**, **Valid but Expired**, **Invalid**, or **Revoked**.
* Click **‘Request Verifiable Credentials’** to start a fresh verification.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-29b632ece3eb70af69057eb0643951e5da11a33b%2Feug-iv-dcapi-image8.png?alt=media" alt=""><figcaption><p>Mobile View</p></figcaption></figure>

### Cross Device Flow from Desktop

Use this flow when Inji Verify is open on a desktop browser and the credential is kept in a wallet on your mobile device.

#### Step 1: Initiate VP Request and Select Credential Types

* Open the Inji Verify portal on your desktop browser and go to the **‘VP Verification’** tab.
* Click **‘Request Verifiable Credentials’**; the **‘Verifiable Credential Selection Panel’** appears.
* Select the required credentials (for example, **EU Personal ID (SD-JWT)**, **MOSIP ID**) and click **‘Open Wallet’**.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-b89792fd37f06db6cb5a1239c9a369729be62e20%2Feug-iv-dcapi-image9.png?alt=media" alt=""><figcaption><p>Desktop View</p></figcaption></figure>

#### Step 2: Grant Browser Permission

* The browser shows **“Do you trust this site with your data?”** — *“…wants to use personal info from your digital wallet.”*
* Click **Continue**.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-8b1db6355903452844f9d89d5935ad417124c624%2Feug-iv-dcapi-image10.png?alt=media" alt=""><figcaption><p>Desktop View</p></figcaption></figure>

#### Step 3: Scan the Browser-Generated QR Code

* Because no matching credential is present on the desktop, the browser displays the dialog **“Use another device by scanning the QR code”** — *“…wants to get info from your mobile device.”*
* A QR code is rendered **by the browser itself** (not by the Inji Verify page). Inji Verify continues to show its loading indicator in the background while the exchange is in progress.
* Scan this QR code using the mobile device that holds the credential, Click **Cancel** at any time to abandon the request.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-39941fd78ec46901c4f25ed8cd7a5a68fab9d080%2Feug-iv-dcapi-image11.png?alt=media" alt=""><figcaption><p>Desktop View</p></figcaption></figure>

#### Step 4: Complete the Exchange on the Mobile Device

* Once the QR code is scanned, the desktop dialog changes to **“Follow the steps on your other device”** with a device-pairing animation, indicating that the secure cross-device channel has been established.
* On the mobile device, select the credential, review the claims to be shared, authenticate, and give consent in the wallet (same wallet screens as in Flow 1 i.e. 'Same Device Flow (Mobile)' - Step 5).

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-3f6227a16dfbfb3a81ae8832087872d5a32c099b%2Feug-iv-dcapi-image12.png?alt=media" alt=""><figcaption><p>Desktop View</p></figcaption></figure>

#### Step 5: View Verification Results

* On successful sharing, the browser dialog closes and Inji Verify advances to next step — **View Verification Results** — and renders the verification outcome for each credential shared from the wallet.
* Each credential is shown with its status (**Valid** / **Valid but Expired** / **Invalid** / **Revoked**), its disclosed claims, and options to **Download the JSON** or **Expand** the view.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-9f8963315f89e2f57efd69969a72194989adf24f%2Feug-iv-dcapi-image13.png?alt=media" alt=""><figcaption><p>Desktop View</p></figcaption></figure>

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-a3a095aaf05cd071965628858d2dd6320f2afacb%2Feug-iv-dcapi-image14.png?alt=media" alt=""><figcaption><p>Desktop View — scrolled to the disclosed claims and selective-disclosure note</p></figcaption></figure>

> **Troubleshooting Note:** During this flow the portal calls `vp-session-request`, the DC API (`dc-api`), and `vp-session-results` in sequence. These calls are visible in the browser’s Network tab and are useful when troubleshooting a failed exchange.

### Cross Device Flow from Mobile

Use this flow when Inji Verify is open on one mobile device and the credential is held in a wallet on a *second* mobile device.

#### Step 1: Initiate VP Request and Select Credential Types

* Open Inji Verify on the first (verifier) mobile device, go to **‘VP Verification’**, and click **‘Request Verifiable Credentials’**.
* In the **‘Verifiable Credential Selection Panel’**, select the credentials to request (for example, **MOSIP ID**, **CMWallet EUDI PID (dc+sd-jwt ARF 1.8)**).
* Click **‘Open Wallet’**.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-80d949b3c42f2301eca70ef9e5633d4b705a2787%2Feug-iv-dcapi-image15.png?alt=media" alt=""><figcaption><p>Mobile View</p></figcaption></figure>

#### Step 2: Choose to Use a Different Device

* The browser searches the wallets available on this device. Since the requested credential is not available locally, it displays the sheet **“Your info wasn’t found”** — *“You can use your info that’s available on another device.”*
* Click **‘Use a different device’**, or click **Close** to abort the request.)

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-3e50cb8f92139a21c2039a7707b6bd4ac2cc38eb%2Feug-iv-dcapi-image16.png?alt=media" alt=""><figcaption><p>Mobile View</p></figcaption></figure>

#### Step 3: Display the QR Code on the Verifier Device

* The browser displays the sheet **“Scan this QR code”** — *“Scan this QR code with the device that has the credential for Chrome that you’d like to use.”*
* Keep this screen open on the verifier device.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-53821b8fe3b7ed9a011faff864b263fbd43e9f4a%2Feug-iv-dcapi-image17.png?alt=media" alt=""><figcaption><p>Mobile View</p></figcaption></figure>

#### Step 4: Scan the QR Code from the Wallet Device

* On the second mobile device (the one holding the credential), open the camera or **Google Lens** and point it at the QR code displayed on the verifier device.
* A **‘Use passkey’** chip appears over the scanned QR code. Tap it.
* The device displays **“Connecting with another device”** while the secure cross-device channel is established between the two phones.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-7fcca2e94eb9f5e25a777b9b7c878a10cbff76a9%2Feug-iv-dcapi-image18.png?alt=media" alt=""><figcaption><p>Mobile View — scanning the QR code with Google Lens</p></figcaption></figure>

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-9f2724dd71b7906f397e3fe209776a3292c6a096%2Feug-iv-dcapi-image19.png?alt=media" alt=""><figcaption><p>Mobile View — establishing the cross-device channel</p></figcaption></figure>

#### Step 5: Authenticate and Consent in the Wallet

* The wallet on the second device (for example, **CMWallet**) opens and prompts **“Verify your identity — Touch the fingerprint sensor”**.
* After authentication, the wallet lists the credential and the claims requested and asks for consent.
* Tap **Share** to send the Verifiable Presentation back to the verifier device.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-4feb003f7cc1ab7b3e61fd1b749b7ed7efd1ec4d%2Feug-iv-dcapi-image20.png?alt=media" alt=""><figcaption><p>Mobile View</p></figcaption></figure>

#### Step 6: View Verification Results on the Verifier Device

* The verifier device automatically returns to Inji Verify and advances to next step — **View Verification Results**, where the verification outcome is displayed for the shared credential:
  * **Valid** — green banner: *“Congratulations, the given credential is valid!”*
  * **Invalid** — red banner: *“Unfortunately, the given credential is invalid!”*
  * Other possible statuses are **Valid but Expired** and **Revoked**.
* The disclosed claims are listed below the status, with the selective-disclosure icon against each claim that the holder chose to share, and options to **download** the VC as JSON or **expand** it to full screen.

<figure><img src="https://3039626265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaY8BQ4hdzhSchZV814Ev%2Fuploads%2Fgit-blob-d41489b3370090f89f7cb6a78a9f88953b2ace60%2Feug-iv-dcapi-image21.png?alt=media" alt=""><figcaption><p>Mobile View — the example below shows an invalid credential result</p></figcaption></figure>

### Error Handling — DC API Flows

| Scenario                                                                                                   | Behaviour / Message                                                                                                                                                                 |
| ---------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The user declines the browser permission prompt (**Cancel** on *“Do you trust this site with your data?”*) | The request is aborted and Inji Verify returns to the ‘VP Verification’ screen with no result.                                                                                      |
| No matching credential is present on the device                                                            | The browser shows **“Your info wasn’t found — You can use your info that’s available on another device”** with the options **Use a different device** and **Close**.                |
| The user cancels the QR dialog or the wallet consent screen                                                | The exchange is terminated; Inji Verify returns to the ‘VP Verification’ screen and a fresh request must be initiated.                                                              |
| The verifier is not recognised by the wallet                                                               | The wallet displays the caution **“The website requesting this data is unknown. Make sure you are comfortable sharing this data”**. The user may still choose to proceed or cancel. |
| The credential presented fails verification                                                                | Inji Verify displays **“Unfortunately, the given credential is invalid!”** along with the credential details.                                                                       |
| The browser does not support the Digital Credentials API                                                   | The **‘Open Wallet’** option cannot complete; use the **‘Generate QR Code’** (standard OpenID4VP cross-device) flow instead.                                                        |
| No internet connectivity                                                                                   | **‘No Internet Connection! Oops! We can’t seem to connect. Check your internet connection and try again’**                                                                          |
| Server unavailable                                                                                         | **‘The service is currently unavailable. Please try again later’**                                                                                                                  |

***

{% hint style="info" %}
**Notes:**

1. In DC API flows the browser — not the Inji Verify page — renders the wallet selector, the consent sheet, and the cross-device QR code. The Inji Verify page shows a loading indicator until the browser returns the presentation.
2. The claims listed on the browser and wallet consent screens are exactly those requested by Inji Verify in the DCQL query for the selected credential types.
3. For every VC displayed after verification, the verifier can download the VC in JSON format and expand it to full view.
4. For SD-JWT credentials, claims that were selectively disclosed by the holder are marked with a dedicated icon in the result card.
5. The wallet shown is the **Multipaz Test App** in Flows 1 and 2, and **CMWallet** in Flow 3. The exact wallet UI varies by wallet vendor.
   {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.inji.io/inji-verify/functional-overview/end-user-guide/vp-verification-using-the-digital-credentials-dc-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
