Get the presentation requests

The purpose to get the presentation request is to know what attestation and attributes are requested

From the Holder wallet

The webhook received once the Verifier sent the presentation request

{
  "event": "PRESENTATION_REQUEST_RECEIVED",
  "connectionId": "988f8949-ef29-4701-9e56-748a4da2ab63",
  "presentationId": "482ba620-e406-4af2-b4e4-368c1a8db0c4"
}
  • In the webhook, copy the presentationId

  • Create a new request with the Method POST and the value {{base_URL}}/presentations/{id}

  • Rename this request "Send presentation ID"

  • Replace {id} with the presentationId you have copied above

  • Save the request and click SEND

the response is

{
    "id": "4cab0bf0-42bb-4dd8-b69b-0cec8b84dc04",
    "connectionId": "5b2e0519-eb9a-49e3-b79f-9308b34795e4",
    "deliveryState": "requested",
    "attributes": {
        "type": {
            "schemaId": "1uYeHCcPjzRVGFQcFPMsg:2:Test Attestation publique XXX:1.0"
        },
        "size": {
            "schemaId": "1uYeHCcPjzRVGFQcFPMsg:2:Test Attestation publique XXX:1.0"
        },
        "price": {
            "schemaId": "1uYeHCcPjzRVGFQcFPMsg:2:Test Attestation publique XXX:1.0"
        },
        "emailAttestation": {
            "schemaId": "5gP2EpQA2dtHMRtAxvXRK7:2:Email attestation:1.0"
        }
    },
    "predicates": {}
}
  • Thanks to this information you know that the Verifier requests the attributes "type", "size" and "price" from the schema "Test Attestation Publique XXX", and "emailAttestation" from the schema "Email attestation"

Dernière mise à jour