Accept attestation

Here we describe how to accept the attestation

In the previous section you sent an attestation request. At the same time a webhook was sent to the holder:

{
  "event": "ATTESTATION_OFFER_RECEIVED",
  "connectionId": "f457e469-929c-41bb-9343-a4868f87affb",
  "attestationId": "5cf231d3-30ab-4f05-b5c8-d6dd568c4cef"
}
  • Then, retrieve the attestation ID from the webhook. Here the ID is 5cf231d3-30ab-4f05-b5c8-d6dd568c4cef

You can also retreive the attestationId thanks to the call GET attestation, with the Key « deliveryState » set to the value « received » (see: Accept Attestation)

Accept attestation offer:

  • Create a new request but with the Method POST and the value {{base_URL}}/attestations/{id}/accept-offer

  • replace {ID} by the ID received from the webhook Attestation_offer_received

  • Save and click SEND

  • The response is 204 when the attestation has been accepted

  • At the same time, a webhook notification is received for the holder:

{
  "event": "ATTESTATION_RECEIVED",
  "connectionId": "694b8024-e34c-4aaa-b3c4-dd114f3cba4c",
  "attestationId": "145bf9c0-789d-4062-93d4-18647af415f6"
}

Dernière mise à jour

Cet article vous a-t-il été utile ?