Preview release.These docs are a work in progress. Pages are still being written, links may break, and structure may shift without notice. Treat everything here as a draft and report issues onGitHub.
Create an OpenID4VCI credential nonce
POST
/oid4vci/nonce
const url = 'https://example.com/oid4vci/nonce';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"credential_configuration_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/oid4vci/nonce \ --header 'Content-Type: application/json' \ --data '{ "credential_configuration_id": "example" }'Returns a c_nonce for proof-of-possession. Error responses use the OpenID4VCI error envelope, not RFC 9457 Problem Details.
Request Body
Section titled “Request Body”Media typeapplication/json
object
credential_configuration_id
string
Examplegenerated
{ "credential_configuration_id": "example"}Responses
Section titled “Responses”Nonce response
Media typeapplication/json
object
c_nonce
required
string
c_nonce_expires_in
required
integer format: uint64
Example
{ "c_nonce": "b64url-nonce", "c_nonce_expires_in": 300}Invalid nonce request
Media typeapplication/json
object
error
required
string
error_description
string
Example
{ "error": "invalid_request", "error_description": "credential request is invalid"}OpenID4VCI nonce endpoint is disabled
Nonce store is rate limited
Media typeapplication/json
object
error
required
string
error_description
string
Example
{ "error": "temporarily_unavailable", "error_description": "credential request is rate limited"}OpenID4VCI issuer failed
Media typeapplication/json
object
error
required
string
error_description
string
Example
{ "error": "server_error", "error_description": "credential issuer failed"}