For the complete documentation index, see llms.txt. This page is also available as Markdown.

Wallet Server

The Wallet Server is a server-side, multi-tenant cloud wallet built into the credential platform's HTTP API. Holder and wallet functionality is a module of the same backend that provides the Issuer and Verifier capabilities, addressed under /agent/holder and /holders/:holderId/*.

It is designed for:

  • Running automated tests and integration pipelines without a mobile wallet

  • Powering AI agents that need to act as a holder programmatically

  • Simulating realistic wallet interactions with issuers and verifiers

It speaks the same OpenID4VCI (issuance) and OpenID4VP (presentation) credential protocols a mobile wallet uses, so you can drive the same claim and presentation flows from scripts, CI, or agent frameworks — but as plain HTTP calls.

What It's For

Mobile wallets are great for human-in-the-loop flows. For automated testing or autonomous agents, you often need a non-interactive, scriptable holder that behaves like a real one. The cloud wallet fills that gap: you create a holder once, then process credential-offer and presentation-request URIs over HTTP instead of scanning QR codes by hand.

Key Capabilities

  • Multi-tenant holders — one wallet per user, created via POST /agent/holder and listed via GET /agent/holders. Each holder is identified by a holderId (a UUID) used in every wallet call.

  • Holder DIDs — created as did:key or did:web when the holder is created. The DID is bound to the holder and used as the cryptographic subject when claiming and presenting credentials.

  • Single-call URI processing — POST /holders/:holderId/process accepts either a credential-offer URI (issuance) or an OpenID4VP authorization-request URI (presentation) and acts automatically based on the URI scheme.

  • Credential store — list raw stored credentials (GET /holders/:holderId/credentials) or decoded payloads (GET /holders/:holderId/credentials/decoded).

  • Credential formats — the wallet can store and present SD-JWT VC, JWT-VC-JSON, JSON-LD VC, W3C v2 (vc+jwt / vc+sd-jwt), and mdoc credentials it receives.

Holders are created with did:key or did:web; see the FAQ for how this relates to did:empe.

Creating a Holder

Create a holder for the authenticated user. Choose key for a self-contained did:key, or web to have a did:web document hosted by the service.

POST /agent/holder

Request Body

  • method (string, required) — key or web.

  • domain (string) — required when method is web; a hostname such as example.com.

  • label (string) — optional human-readable name for the wallet.

Response Body

  • holderId (string) — the tenant id used for all subsequent wallet calls.

  • did (string) — the holder's DID.

  • cryptographicBindingMethodsSupported (string[]) — e.g. ["did:key","did:jwk","did:web"].

  • credentialSigningAlgValuesSupported (string[]) — e.g. ["EdDSA","ES256"].

  • didDocument (object) — present only for did:web holders.

List the holders owned by the authenticated user with GET /agent/holders.

Processing a URI

A single endpoint handles both issuance and presentation. It inspects the URI scheme and either claims the offered credential(s) into the wallet (openid-credential-offer://...) or selects matching credentials and sends a presentation (openid4vp://...).

POST /holders/:holderId/process

Request Body

  • uri (string, required) — the credential-offer or authorization-request URI.

Response Body

For an issuance URI, claimed credentials are stored and reported:

For a presentation URI, the wallet selects matching credentials (via DCQL or Presentation Exchange) and submits them:

Listing Credentials

Fetch what the wallet currently holds. Use the raw endpoint for the encoded credential strings/objects, or the decoded endpoint to read the claims directly.

GET /holders/:holderId/credentials

GET /holders/:holderId/credentials/decoded

If a credential cannot be decoded, its entry includes an error field and a null decoded value.

Architecture Overview

  • Holder/tenant management — create and list per-user holder wallets (/agent/holder, /agent/holders).

  • URI processing — single-call issuance and verification handling (/holders/:holderId/process).

  • Credential store — list raw and decoded credentials held by a tenant.

  • DID document hosting — did:web holder documents are served by the service at GET /:uuid/did.json (and at GET /:uuid/.well-known/did.json).

  • Auth guard — validates the Bearer token and enforces the admin role plus per-holder ownership.

Multi-Tenancy

A single deployment hosts many logical wallets. Each holder is a separate tenant identified by its holderId and is owned by the OIDC user who created it. Isolation is enforced per holder: an ownership check rejects any request for a holderId the caller does not own, so a user can only reach their own wallets.

Authentication

Every wallet endpoint requires a valid OIDC JWT supplied as Authorization: Bearer <token>. The token is validated against the configured JWKS endpoint, and the admin role (from realm_access.roles) is required on both /agent/* and /holders/:holderId/* routes. For local development, set AUTH_DISABLED=true to treat every request as an authenticated admin.

API Reference

Interactive API documentation is available through Swagger UI at GET /api-docs, and the raw OpenAPI specification is served at GET /api-docs-json. The platform also exposes a public GET / hello endpoint and GET /version for basic service checks.

Last updated