Skip to main content
Verification

Receive DC API verification response

POST/v4/config/ows/verifier/verifications/{verificationId}/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

  • Authorizationstringheaderrequired

    Your API key with the prefix ApiKey: ApiKey <your-api-key>. Get an API key.

    Scope:verifications:receive

Path parameters

Body

application/json

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, in response or in vp_token, also inside a JSON text that has one of these members.
  • dc_api: vp_token, else response with the JSON text of the response.
  • iso18013_7_annex_c: response with the base64url EncryptedResponse of the wallet.
One of
  • responsestringrequired

    dc_api.jwt: the JWE in compact serialization; the wallet decrypts it with the key of this request (the key works once) and reads vp_token from it. dc_api: the JSON text {"vp_token": {...}}. iso18013_7_annex_c: the base64url CBOR EncryptedResponse.

Response

application/json

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 presentationExchangeId of the verification history.

  • organisationIdstring<uuid>

    Identifier of the organisation wallet (the openIdOrganisationId of the verification history).

  • presentationDefinitionIdstring<uuid> | null

    The presentation definition of the request.

  • requestStatestring | null

    The state of the request.

  • requestObjectstring | null

    The Request Object of the request. Empty for a DC API request.

  • requestUrlstring | null

    The Authorization Request URL. Empty for a DC API request.

  • vpTokenstring[] | null

    The 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_acked after the check.

    Available options:request_sent,request_received,presentation_acked

  • isVerifiedboolean

    true when every check of the response passed.

  • holderobject | null

    The holder that answered, with its name from the presentation.

  • presentationobject[] | null

    The decoded credentials that the holder presented, with only the asked claims.

  • presentationValidityobject[] | null

    The result of the checks of each presented credential, with the trusted list check of its issuer.

  • credentialExchangeIdstring | null

    When the presentation is part of an issuance, the credential exchange id of that issuance history.

  • transactionDataobject | null

    The transaction data of the request.

  • transactionDataBase64string | null

    The transaction_data entry of the request (base64url).

  • noncestring | null

    The nonce of the request.

  • responseTypeenum<string> | null

    Response type of the request.

    Available options:vp_token,device_response

  • clientIdSchemeenum<string> | null

    How the verifier identified itself to the wallet. null for iso18013_7_annex_c.

    Available options:redirect_uri,verifier_attestation,x509_san_dns,x509_hash

  • responseModeenum<string> | null

    Response mode of the request: dc_api or dc_api.jwt, null for iso18013_7_annex_c.

    Available options:dc_api,dc_api.jwt

  • verifierAttestationstring | null

    The Verifier Attestation JWT of a verifier_attestation request.

  • directPostRedirectUristring | null

    Not used for a DC API request.

  • requiresEncryptionboolean | null

    true when the wallet must encrypt the response (dc_api.jwt, iso18013_7_annex_c).

  • versionenum<string> | null

    The protocol of the request (version of the presentation definition).

    Available options:version_01,iso18013_7_annex_c

  • filesobject[] | null

    The PDF documents of a document signing request.

  • dcApiRequestobject | null

    The request that the browser got, for Chromium (chrome) and Safari (safari).

  • dcApiProtocolenum<string> | null

    The protocol of the DC API request.

    Available options:openid4vp-v1-unsigned,openid4vp-v1-signed,org-iso-mdoc

  • presentationDefinitionSnapshotobject | null

    A copy of the presentation definition when the request was made.

  • cryptographicKeyIdentifierstring | null

    The kid of the key that signed the request, or null.

  • cryptographicKeyFormatstring | null

    Format of the key that signed the request, or null.

  • hasSignatureStampboolean | null

    true when the signed PDF has a visible signature stamp.

  • signatureCoordinateinteger[] | null

    Where the signature goes on the PDF page, as [x1, y1, x2, y2] in points.

    4 items.

  • dataAgreementobject | null

    The dataAgreement of the send request.

  • createdAtnumber

    When the verifier made the request (Unix time in seconds).

  • updatedAtnumber

    When the verification last changed (Unix time in seconds).