---
id: openID4vp-receive-and-present-credentials
title: OpenID4VP - Receive and Present Credential
description: Learn how to receive and present Verifiable Credentials with OpenID4VP, enabling secure and privacy‑preserving data sharing in digital services.
keywords: [OpenID4VP, presentation, verifiable credentials, credential presentation, OID4VP, EUDI Wallet, Organisation Wallet, European Business Wallet, selective disclosure]
hide_title: false
sidebar_label: Receive and Present Credential
slug: /openID4vp-receive-and-present-credentials/
---

> **Build this with an AI coding agent.** Install the iGrant.io Agent Skills, then ask your agent to build the integration:
>
> ```bash
> npx skills add L3-iGrant/skills
> ```

<head>
  <title>Present credentials using OpenID4VP workflows | iGrant.io DevDocs</title>
  <meta name="description" content="Learn how to receive and present Verifiable Credentials with OpenID4VP, enabling secure and privacy‑preserving data sharing in digital services."/>
</head>

The Wallet Unit (WU) lets an organisation present the credentials that it holds, in the same way as a person shows a document from a physical wallet. With the Organisation Wallet Suite, your organisation answers verifiers over OpenID for Verifiable Presentations (OpenID4VP) 1.0, with a Digital Credentials Query Language (DCQL) query. The holder shares only the credentials and claims that the verifier asks for, and only after approval.

The flow has three steps: receive the request of the verifier, find the matching credentials, and send the presentation.

## Before you start

- **An API key of your main organisation.** To get an API key, see [Get API Keys](/docs/developer-apis/get-started/). A sandbox organisation has no holder wallet, so it holds no credentials to present.
- **An operational wallet unit**, as for [receiving credentials](/docs/openID4vc-receive-and-store-credential/).
- **Credentials in the wallet** that answer the request of the verifier.

## Step 1: Receive the request

Send the `openid4vp://` Authorization Request URI that the holder scanned or opened with [Receive verification](/docs/openid4vc-api/config-receive-digital-wallet-open-id-verification-v-3/):

```bash
curl -X POST "https://demo-api.igrant.io/v3/config/digital-wallet/openid/sdjwt/verification/receive" \
  -H "Authorization: ApiKey <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"vpTokenQrCode": "openid4vp://?client_id=x509_hash%3AUvRWsFzWB2aL6mJq0YxT3cK9dP4eN8hG1iA5bC7fE2s&request_uri=https%3A%2F%2Fverifier.example.com%2Frequest%2F8f2b1c9e"}'
```

Example response (`200`, shortened):

```json
{
  "presentation": {
    "presentationId": "3f2a7c18-9b4e-4d0a-8c6f-1e5b2a9d4c73",
    "status": "presentation_pending",
    "clientIdScheme": "x509_hash",
    "clientMetadata": { "clientName": "Example Verifier", "logoUri": "", "location": "Sweden", "coverUri": "", "description": "" },
    "isVerifiedWithTrustList": true,
    "dcqlQuery": {
      "credentials": [
        { "id": "pid", "format": "dc+sd-jwt", "meta": { "vct_values": ["urn:eudi:pid:1"] }, "claims": [{ "path": ["family_name"] }] }
      ]
    },
    "transactionDataDecoded": null
  }
}
```

Show the verifier details and any `transactionDataDecoded` to the holder before you go on. Keep `presentationId`: the next steps use it.

## Step 2: Find the matching credentials

Call [Filter verification](/docs/openid4vc-api/config-filter-digital-wallet-open-id-verification/). The request has no body:

```bash
curl -X POST "https://demo-api.igrant.io/v2/config/digital-wallet/openid/sdjwt/verification/3f2a7c18-9b4e-4d0a-8c6f-1e5b2a9d4c73/filter" \
  -H "Authorization: ApiKey <YOUR_API_KEY>"
```

Example response (`200`, shortened):

```json
{
  "credentials": [
    {
      "id": "pid",
      "matchedCredentials": [
        { "credentialId": "d29a6c1e-4b8f-4a1d-9c3e-7f5b2a0d8e11", "vct": "urn:eudi:pid:1", "match": { "family_name": "Andersson" } }
      ]
    }
  ]
}
```

The response has one entry for each credential query. An empty `matchedCredentials` marks a query that the wallet cannot answer. An entry also holds `claimSets` when the query offers claim options, and `multiple` when the query accepts more than one credential.

## Step 3: Send the presentation

Send the credentials that the holder selected with [Send verification](/docs/openid4vc-api/config-send-digital-wallet-open-id-verification-presentation-v-3/). Give one entry for each credential query:

```bash
curl -X POST "https://demo-api.igrant.io/v3/config/digital-wallet/openid/sdjwt/verification/3f2a7c18-9b4e-4d0a-8c6f-1e5b2a9d4c73/send" \
  -H "Authorization: ApiKey <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"credentials": [{"id": "pid", "credentialId": "d29a6c1e-4b8f-4a1d-9c3e-7f5b2a0d8e11"}]}'
```

- Use `credentialIds` in place of `credentialId` for a query with `multiple`.
- Add `claimIds` with one option of `claimSets` for a query with claim options.

After a good answer, `status` is `presentation_acked`. When `responseRedirectUri` is not empty, send the browser of the user to that address to finish the flow at the verifier.

To decline the request, [delete the presentation record](/docs/openid4vc-api/config-delete-digital-wallet-open-id-verification/). The wallet then tells the verifier that the holder declined, so that the verifier does not wait.

## Automatic presentation

For credentials that the wallet may share without approval, turn on automatic presentation with [Configure auto presentation](/docs/openid4vc-api/config-configure-auto-present-for-digital-wallet-open-id-credential/), and send `"autoPresent": true` in Step 1. The wallet then sends the presentation inside the receive call, and the response has the status `presentation_acked`.

:::info Trust status of the verifier
The wallet checks whether the verifier can be matched against a recognised trust list. The verification response exposes this through the `isVerifiedWithTrustList` and `trustServiceProvider` fields. If the verifier cannot be matched, the Data Wallet shows a **"Service provider not verified"** warning. See [The "Service provider not verified" notice](/docs/trust-untrusted-service-provider/) and [Trust in the Wallet Ecosystem](/docs/trust-overview/).
:::
