Receive DC API verification response
Takes the response of a Digital Credentials API (DC API) request that your frontend got from the browser, checks it and stores the result in the verification history. Use it only for a presentation definition with responseMode dc_api or dc_api.jwt, or with the version iso18013_7_annex_c; with direct_post the wallet posts its response itself.
The flow: Send verification request, give its dcApiRequest to navigator.credentials.get() in the browser, then send the result here with the presentationExchangeId as verificationId. The wallet decrypts a dc_api.jwt response, checks the VP Token against the DCQL query and checks each credential.
A request takes one response: a refused response is kept, so a second response for the same request is refused. The answer is the stored record in another shape than the verification history: read the verification with Read verification history for the usual shape.
Authorizations
AuthorizationstringheaderrequiredYour API key with the prefix
ApiKey:ApiKey <your-api-key>. Get an API key.Scope:
verifications:receive
Path parameters
verificationId stringrequiredThe
presentationExchangeIdof the verification history, from Send verification request or List verification history.Example:
"8e9c0a94-3b7d-4f2c-9d11-2f5a0b1c8d3e"
Body
The response of the wallet, as the browser gave it: response, vp_token, or both. A member that the operation does not declare is refused.
dc_api.jwt: the JWE, inresponseor invp_token, also inside a JSON text that has one of these members.dc_api:vp_token, elseresponsewith the JSON text of the response.iso18013_7_annex_c:responsewith the base64urlEncryptedResponseof the wallet.
responsestringrequireddc_api.jwt: the JWE in compact serialization; the wallet decrypts it with the key of this request (the key works once) and readsvp_tokenfrom it.dc_api: the JSON text{"vp_token": {...}}.iso18013_7_annex_c: the base64url CBOREncryptedResponse.
Response
The checked verification, as the wallet stores it: not the shape of the verification history (for example organisationId in place of openIdOrganisationId, and version). status is presentation_acked, and isVerified gives the result.
idstring<uuid>Identifier of the verification: the
presentationExchangeIdof the verification history.organisationId string<uuid>Identifier of the organisation wallet (the
openIdOrganisationIdof the verification history).presentationDefinition Id string<uuid> | nullThe presentation definition of the request.
requestState string | nullThe
stateof the request.requestObject string | nullThe Request Object of the request. Empty for a DC API request.
requestUrl string | nullThe Authorization Request URL. Empty for a DC API request.
vpToken string[] | nullThe VP Token that the wallet sent, as the verifier keeps it: for a DCQL response, one string with its JSON, with only the asked claims.
statusenum<string>presentation_ackedafter the check.Available options:
request_sent,request_received,presentation_ackedisVerified booleantruewhen every check of the response passed.holderobject | nullThe holder that answered, with its
namefrom the presentation.presentationobject[] | nullThe decoded credentials that the holder presented, with only the asked claims.
presentationValidity object[] | nullThe result of the checks of each presented credential, with the trusted list check of its issuer.
credentialExchange Id string | nullWhen the presentation is part of an issuance, the credential exchange id of that issuance history.
transactionData object | nullThe transaction data of the request.
transactionData Base64 string | nullThe
transaction_dataentry of the request (base64url).noncestring | nullThe
nonceof the request.responseType enum<string> | nullResponse type of the request.
Available options:
vp_token,device_responseclientId Scheme enum<string> | nullHow the verifier identified itself to the wallet.
nullforiso18013_7_annex_c.Available options:
redirect_uri,verifier_attestation,x509_san_dns,x509_hashresponseMode enum<string> | nullResponse mode of the request:
dc_apiordc_api.jwt,nullforiso18013_7_annex_c.Available options:
dc_api,dc_api.jwtverifierAttestation string | nullThe Verifier Attestation JWT of a
verifier_attestationrequest.directPost Redirect Uri string | nullNot used for a DC API request.
requiresEncryption boolean | nulltruewhen the wallet must encrypt the response (dc_api.jwt,iso18013_7_annex_c).versionenum<string> | nullThe protocol of the request (
versionof the presentation definition).Available options:
version_01,iso18013_7_annex_cfilesobject[] | nullThe PDF documents of a document signing request.
dcApi Request object | nullThe request that the browser got, for Chromium (
chrome) and Safari (safari).dcApi Protocol enum<string> | nullThe protocol of the DC API request.
Available options:
openid4vp-v1-unsigned,openid4vp-v1-signed,org-iso-mdocpresentationDefinition Snapshot object | nullA copy of the presentation definition when the request was made.
cryptographicKey Identifier string | nullThe
kidof the key that signed the request, ornull.cryptographicKey Format string | nullFormat of the key that signed the request, or
null.hasSignature Stamp boolean | nulltruewhen the signed PDF has a visible signature stamp.signatureCoordinate integer[] | nullWhere the signature goes on the PDF page, as
[x1, y1, x2, y2]in points.4 items.
dataAgreement object | nullThe
dataAgreementof the send request.createdAt numberWhen the verifier made the request (Unix time in seconds).
updatedAt numberWhen the verification last changed (Unix time in seconds).