# What is Digital Credentials API?

> The Digital Credentials API is a W3C browser interface, still a draft, that lets a website ask for a digital credential such as a driving licence. The browser checks the request, and the user chooses whether a wallet answers.

Explainer by Boston Identity, 2026-11-18. 6 min read. https://insights.bostonidentity.com/glossary/digital-credentials-api

- What it is: standard
- Defined by: W3C Working Draft, 5 November 2026
- Who it's for: Teams checking identity or age online

## What is Digital Credentials API?

Suppose your team must confirm that a customer is over 18 before an order goes through. The quick build asks for a photo of a driving licence. Now your systems hold a whole identity document when you needed one fact, and a leak of that store would be your breach. The draft names this pattern, collecting a user's entire national identity document for age verification, as a request for too much information [S1 §11.4].

The Digital Credentials API (application programming interface) is the World Wide Web Consortium's (W3C) design for the browser's part of that exchange. It lets a website ask the browser for a digital credential, such as a driving licence [S1 §1]. Its scope includes making sure that no installed wallet learns anything about a request unless the user agrees to use that wallet [S1 §3]. It is a Working Draft, not yet a standard, and the document says it may be updated, replaced or obsoleted at any time [S1].

What the browser cannot see may surprise you. The draft's goals require requests to be unencrypted so the browser can inspect them for risk, and they assume the responses are encrypted [S1 §1]. So the browser may reject a request, but the draft says that, because of response encryption, the browser cannot guarantee that no linkable information passes between the website and the wallet [S1 §11.3.1.2].

Think of it like this: Think of a receptionist who reads every visitor's request slip before calling upstairs, then carries the sealed reply back unopened. The receptionist can turn a visitor away, but cannot vouch for what the envelope held.

Not the same as: Not a wallet and not a credential format. The draft leaves how wallets store and manage credentials out of scope, and it is designed to work whatever format the credential uses.

## How does Digital Credentials API work?

Four parties take part: the website asking for the credential (the verifier), the browser (the draft's "user agent"), the user, and the wallet that holds the credential (the draft's "credential manager"). This walk-through follows a presentation, where a site asks to be shown a credential.

[Figure: The browser sits between the verifier's page and the wallet: it checks the request on the way in, and passes the wallet's response back to the page.]

1. **The website asks the browser.** The verifier's page calls navigator.credentials.get() with one or more requests. Each request names a presentation protocol and carries that protocol's request data [S1 §2.3] [S1 §7.3]. Before the call, the page can use userAgentAllowsProtocol() to see whether the browser allows a protocol [S1 §2.2].
2. **The browser filters, then checks for a click.** The browser drops any request whose protocol it does not allow. If none is left, it rejects the call [S1 §8.1] [S1 §6.3]. It then checks that a recent user action lies behind the call, which the draft calls transient activation, and that no other credential request is in progress. If either check fails, it rejects the call with a NotAllowedError [S1 §6.2].
3. **The browser validates the requests.** The browser validates each request's data according to its protocol. It may also apply its own policy or the user's choices, for example rejecting a request that seeks particular credential attributes [S1 §6.4]. A refusal on those grounds returns a NotAllowedError, which a note in the draft calls deliberately indistinguishable from the error returned when the user cancels [S1 §6.4].
4. **The user chooses.** The browser displays a chooser, which the platform provides, and passes it the requests and the top-level site's origin. The user selects a credential or a wallet that can fulfil the request, or cancels [S1 §6.7]. When the wallet is on a different device, the draft recommends that the browser use the Client to Authenticator Protocol to reach it [S1 §6.7].
5. **The wallet answers through the browser.** The wallet returns its response as a string. The browser parses it and, if the result is an object, resolves the page's call with a DigitalCredential that carries the response data and the protocol used [S1 §6.7]. A note in the draft says the platform decides which request to forward to the wallet, and the browser does not necessarily know which one was selected [S1 §6.7].
6. **The website's server decrypts and verifies.** In the draft's own example, the page posts the credential back to the verifier's server for decryption and verification [S1 §2.3]. The privacy section says responses should be decrypted on the verifier's server, so the verifier can keep the decrypted information away from scripts in the page [S1 §11.5.1].

## Why does Digital Credentials API matter now?

The Working Draft dated 5 November 2026 says browsers must support every presentation protocol in its table [S1 §5] [BI-FIND-2026-2230](https://insights.bostonidentity.com/ref/BI-FIND-2026-2230). Those are OpenID for Verifiable Presentations (OpenID4VP) 1.0 with unsigned, signed and multi-signed requests, and Annex C of ISO/IEC 18013-7:2025, the mobile driving licence add-on [BI-FIND-2026-2230](https://insights.bostonidentity.com/ref/BI-FIND-2026-2230). The draft's reason is that a verifier can then rely on the API whatever credential format or request mode it uses [BI-FIND-2026-2230](https://insights.bostonidentity.com/ref/BI-FIND-2026-2230). Support for the one issuance protocol listed is only recommended [BI-FIND-2026-2230](https://insights.bostonidentity.com/ref/BI-FIND-2026-2230).

Heather Flanagan, who works with the W3C's Federated Identity Working Group, reports that the group agreed in Dublin to organise the API into levels and to move much of credential issuance into level two [BI-FIND-2026-2295](https://insights.bostonidentity.com/ref/BI-FIND-2026-2295). In her account, there is no committed timeline for a second browser to implement issuance, and the agreements still have to be turned into specification changes [BI-FIND-2026-2295](https://insights.bostonidentity.com/ref/BI-FIND-2026-2295). She also says privacy remains one of the most significant obstacles to candidate recommendation, a step on the way to a W3C recommendation [BI-FIND-2026-2296](https://insights.bostonidentity.com/ref/BI-FIND-2026-2296).

Researchers at the University of Stuttgart proved three security properties of OpenID4VP run through this API, for the drafts they analysed, and reported no new vulnerabilities [BI-FIND-2025-0329](https://insights.bostonidentity.com/ref/BI-FIND-2025-0329). Their proofs leave out credential issuance, and the report does not discuss privacy [BI-FIND-2025-0331](https://insights.bostonidentity.com/ref/BI-FIND-2025-0331). A formal objection to adding the API to the working group's charter raised credential-gated web access among its concerns. The W3C Council overruled it while recommending that the group take the concerns into consideration [BI-FIND-2026-2272](https://insights.bostonidentity.com/ref/BI-FIND-2026-2272).

## Where does it fit?

- Compared with OpenID for Verifiable Presentations: OpenID4VP is a presentation protocol: it defines the request a verifier sends and the response a wallet returns. The API is the browser channel that carries them, and the draft says browsers must support three OpenID4VP 1.0 request modes.
- Compared with OpenID for Verifiable Credential Issuance: OpenID for Verifiable Credential Issuance is an issuance protocol, for putting a credential into a wallet. The API carries an issuance request through navigator.credentials.create(), but the draft only recommends that browsers support it, and the table's section reference for it reads "Coming Soon".

## What goes wrong?

- An unsigned request can be altered by a script in the verifier's own page, such as one injected by a malicious browser extension. The script can widen what is asked for, or replace the encryption parameters so the response is encrypted to the attacker [S1 §10.4]. The draft strongly encourages a verifier to sign requests where the protocol offers a way [S1 §10.4].
- Signing helps only if the wallet can check the signature against a key already recognised as the verifier's. Which keys to accept is decided by the ecosystem a credential belongs to, not by the draft [S1 §10.4].
- The API cannot govern how a wallet behaves once the user authorises it to handle a request. A wallet that leaks data or ignores user consent is listed as an out-of-scope threat [S1 §10.1.2].
- After the user gives permission, the draft says it is impossible for the browser to ensure the issuer is not involved in the exchange. From that point the wallet owns the decision [S1 §11.3.1.3].
- The browser's permission prompt is not consent, which has legal definitions that vary. The draft says consent may need to be collected by the wallet or by the verifier [S1 §11.6.4].
- The security and privacy sections are non-normative, and the privacy section is marked a work in progress [S1 §10] [S1 §11].
- The Stuttgart proofs treat cryptography as perfect. If a wallet or issuer is corrupted, the properties make no claim about it [BI-FIND-2025-0330](https://insights.bostonidentity.com/ref/BI-FIND-2025-0330).

## What should a security leader ask?

1. Which of our sign-up or checkout flows would ask for a government-issued credential, and what is the least we could ask for in each?
2. Do we sign our presentation requests, and how would the wallets our customers use come to recognise the signing key as ours?
3. Where do we decrypt the wallet's response: on our server, or in page code that an injected script could read?
4. Which wallets will we accept, and who vets them, given that the browser cannot govern a wallet once the user picks it?
5. What do we offer a customer who has no digital credential, or who declines to share one?

## Sources

- [S1] [Digital Credentials](https://www.w3.org/TR/digital-credentials/) (World Wide Web Consortium (W3C), Working Draft, 5 November 2026)

## Evidence

- [BI-FIND-2026-2230](https://insights.bostonidentity.com/ref/BI-FIND-2026-2230): Browsers MUST support every presentation protocol in the draft's table: OpenID for Verifiable Presentations (OpenID4VP) 1.0 with unsigned, signed and multi-signed requests, and Annex C of ISO/IEC 18013-7:2025, the mobile driving licence add-on. The draft's rationale is that a verifier can then rely on the API whatever credential format or request mode it uses, and that browsers will not each allow a different subset. Support for the one issuance protocol listed, OpenID for Verifiable Credential Issuance 1.0, is only RECOMMENDED, and the table's section reference for it reads "Coming Soon". (from "The W3C's Digital Credentials draft says no single party can solve over-asking for government IDs")
- [BI-FIND-2026-2295](https://insights.bostonidentity.com/ref/BI-FIND-2026-2295): Heather Flanagan, who works with the W3C's Federated Identity Working Group, reports that the group agreed at TPAC in Dublin to organize the Digital Credentials (DC) API into levels, following the approach WebAuthn uses; she calls it "essentially versioning". Level one is the functionality needed for an initial interoperable version. The most significant decision, in her account, was to move much of credential issuance into level two: there is no committed timeline for a second browser to implement issuance, and keeping it in level one would make advancing the specification considerably harder. Conditional invocation and more general ways of providing invocation context also move to level two. She says the group is not abandoning those capabilities, and that the agreements still have to be turned into specification changes. (from "Digital Credentials API: W3C group defers much of issuance to level two, Heather Flanagan reports")
- [BI-FIND-2026-2296](https://insights.bostonidentity.com/ref/BI-FIND-2026-2296): Flanagan says the TPAC meetings confirmed that privacy remains one of the most significant obstacles to advancing the DC API to candidate recommendation, a step on the way to a W3C recommendation. Several open issues, in her account, involve protections that depend at least partly on behavior outside the browser API. Selective disclosure is her example, and she says similar questions arise around user-initiated credential presentation, purpose limitation and abuse of credential requests. The browser may not understand which attributes a credential contains or what will be disclosed, and to her own question of what the API can realistically guarantee about selective disclosure, she answers "I don't know." The working group plans to bring editors and privacy experts together for a focused discussion, which she expects to be very challenging. (from "Digital Credentials API: W3C group defers much of issuance to level two, Heather Flanagan reports")
- [BI-FIND-2025-0329](https://insights.bostonidentity.com/ref/BI-FIND-2025-0329): Fabian Hauck, Pedram Hosseyni, Ralf Küsters and Tim Würtele of the University of Stuttgart proved three security properties of OpenID for Verifiable Presentations (OpenID4VP) run through the W3C Digital Credentials API, and report that "no new vulnerabilities were identified during the verification process." The text they analysed is the OpenID4VP editor's draft of 27 March 2025 (commit b0d6812), which they say matches draft 25 in the parts they modelled, paired with the Digital Credentials editor's draft of 20 February 2025. The report does not mention OpenID4VP 1.0 Final. The properties are verifier authentication, stated for signed requests; wallet authorization, meaning that when an honest verifier accepts a presentation and the wallet holding the credential's key is honest, that wallet made it; and claims unforgeability. Formally, the last one says that when an honest verifier logs a user in, and that user's wallets and the credential's issuer are honest, the verifier accepted a presentation one of those wallets made; if every party near that wallet is also honest, the attacker cannot learn the new session cookie. The model's verifier never looks that session up again, so nothing is proved about how it is used later. The properties hold for that draft, inside a formal model of the web and under its assumptions. (from "Formal proofs find no new flaws in OpenID4VP over the Digital Credentials API, for a March 2025 draft")
- [BI-FIND-2025-0331](https://insights.bostonidentity.com/ref/BI-FIND-2025-0331): By agreement with the OpenID Foundation, the proofs leave out credential issuance (wallets start with valid credentials), session integrity, the transaction_data parameter, verifier attestation and every response type other than vp_token. The authors also simplify other parts and argue each simplification is safe: the model ignores credential query languages and lets the wallet pick any credential, sends requests unencrypted, never signs or encrypts responses, and passes request parameters by value. As the authors describe the method, it usually excludes cross-site scripting and flaws in cryptographic primitives and their implementations. Credentials are abstract signed terms, so no particular credential format is analysed, and the report does not discuss privacy. (from "Formal proofs find no new flaws in OpenID4VP over the Digital Credentials API, for a March 2025 draft")
- [BI-FIND-2026-2272](https://insights.bostonidentity.com/ref/BI-FIND-2026-2272): The draft says some harms cannot be prevented by credential design alone. Its centralization pathway, P-007, notes that "a technical credential design cannot by itself prevent Web services or governance bodies from making institutional credentials a condition of participation". Its candidate response, keeping an access path that needs no digital credential where exclusion, surveillance or loss of participation would be a material harm, comes with a warning: such alternatives "may be weaker, stigmatizing, slower, or unavailable in practice unless deployment policy makes them meaningful". Credential-gated Web access was one of five concerns the appendix takes from the formal objection to adding the Digital Credentials API to the Federated Identity Working Group's charter. The appendix treats it as a socio-technical threat and records that the W3C Council overruled the objection while recommending that the Working Group take the concerns into consideration. (from "A W3C group's draft counts login with another issuer's credential as an issuer-controlled path to account access")
- [BI-FIND-2025-0330](https://insights.bostonidentity.com/ref/BI-FIND-2025-0330): The Stuttgart proofs treat cryptography as perfect and have no notion of time, so expiry is never checked. The method usually assumes the protocol is implemented as specified, and the authors assume a working Web PKI, a browser that takes Digital Credentials API requests only from HTTPS origins, and a wallet that obtains the correct metadata for a verifier's client ID. Each property also takes named parties as honest. Claims unforgeability assumes an honest verifier, an honest issuer and honest wallets for the user, and its last part, that an attacker cannot learn the login session's cookie, also needs every party near the wallet to be honest. If a wallet or issuer is corrupted, the properties make no claim about it. (from "Formal proofs find no new flaws in OpenID4VP over the Digital Credentials API, for a March 2025 draft")

---

© 2026 Boston Identity LLC. All rights reserved. Published by Boston Identity LLC.
Quote up to 100 words with the credit "Boston Identity, IAM Insights" and a link to https://insights.bostonidentity.com/glossary/digital-credentials-api as the source. Claim numbers may be cited freely. Training, fine-tuning and evaluation use of this page is permitted, and the text-and-data-mining reservation is lifted on it. Republishing it or offering it as a data set still needs permission.
Terms: https://insights.bostonidentity.com/terms · How to cite: https://insights.bostonidentity.com/cite
