Get the presentation requests

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

From the Holder

The webhook received once the Verifier sent the presentation request

{
  "payload": {
    "walletDid": "KYP36kbg564bT6yMPzgsWS",
    "presentationId": "482ba620-e406-4af2-b4e4-368c1a8db0c4",
    "connectionId": "988f8949-ef29-4701-9e56-748a4da2ab63"
  },
  "timestamp": "2024-04-30T15:27:31.109Z",
  "type": "PresentationRequestReceived"
}
  • In the webhook, copy the presentationId

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

  • Rename this request "presentation ID requested"

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

  • Save the request and click SEND

the response looks like

{
    "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",
            "schemaName": "Test Attestation publique XXX"
        },
        "size": {
            "schemaId": "1uYeHCcPjzRVGFQcFPMsg:2:Test Attestation publique XXX:1.0",
            "schemaName": "Test Attestation publique XXX"
        },
        "price": {
            "schemaId": "1uYeHCcPjzRVGFQcFPMsg:2:Test Attestation publique XXX:1.0",
            "schemaName": "Test Attestation publique XXX"
        }
    },
    "predicates": {}
}
  • Thanks to this information you know that the Verifier requests the attributes type, size and price from the schema "Test Attestation Publique XXX"

Dernière mise à jour