Send Presentations request

In this example you will learn how it is possible to send presentation request of attributes from several attestations.

From the Verifier wallet

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

  • Rename this request "Send multi-presentation request"

  • Select the tab Body, then select raw and copy/paste this json request (replace the connectionId by the Id you received in the webhook):

{
  "connectionId": "0f42f1da-ab2d-41da-91e1-167c31d966a9",
  "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"
    },
    "emailAddress": {
      "schemaId": "5gP2EpQA2dtHMRtAxvXRK7:2:Email attestation:1.0"
    }
  }
}
  • Attributes "type", "size", "price" are requested from the schema "Test Attestation publique XXX", and the attribute "emailAddress" is requested from the schema "Email attestation"

  • Save the request and click SEND

  • you will get a response "Status 204 No Content"

  • at the same time you will receive a webhook

{
  "event": "PRESENTATION_REQUEST_SENT",
  "connectionId": "988f8949-ef29-4701-9e56-748a4da2ab63",
  "presentationId": "482ba620-e406-4af2-b4e4-368c1a8db0c4"
}

Dernière mise à jour