AEGIS by ProtoworksDevelopers
Menu

7.3 · Exchange protocolsWorking

The browser and operating system: the Digital Credentials API

The Digital Credentials application programming interface (API) is how a web page asks the browser for a credential, and the browser and operating system hand the request to a wallet the person picks. The page never talks to the wallet directly: the platform shows its own prompt and passes back the response. Presentation protocols, such as OpenID for Verifiable Presentations and the mobile-document online format, run over it.

Try it

Build the session transcript of a request made through the browser, from OpenID4VP’s own example, and watch a recorded response fail in another session.

An analogy

Asking at a hotel desk, which phones your room on your behalf.

Where it breaks:

  • The desk sees who asked.
  • The platform’s prompt, not the website’s, is what the person relies on.
Precisely

This document defines an API enabling a website to request presentation and issuance of a digital credential.

W3C-DIGITAL-CREDENTIALS §1

How a page requests a credential W3C-DIGITAL-CREDENTIALS §2.3, and the coordinator that mediates it W3C-DIGITAL-CREDENTIALS §6. The presentation protocol’s profile for this interface OPENID4VP-1.0 §A, and the high-assurance profile’s HAIP-1.0 §5.2.

Diagram
Web pageasks the browserBrowser and systemits own promptChosen walletanswersrequesthands on
A web page sends a request to the browser and operating system, which show their own prompt and pass the request to the wallet the person chose. The wallet’s response returns the same way. The page never touches the wallet.
Who can see what
What this does not do
  • The interface does not define the presentation itself: the protocol carried over it does.
Verified against
  • HAIP-1.0 OpenID4VC High Assurance Interoperability Profile 1.0 version 1.0, checked 2026-10-28
  • OPENID4VP-1.0 OpenID for Verifiable Presentations 1.0 version 1.0, checked 2026-10-28
  • W3C-DIGITAL-CREDENTIALS Digital Credentials API version Working Draft 2026-09-04, checked 2026-10-28

Last reviewed 2026-10-28. Next review 2027-04-28. Every quotation is checked against the text it quotes, at the version named, before the page is published.