Accept attestation
In this section, you will learn how to accept an attestation with API
Dernière mise à jour
In this section, you will learn how to accept an attestation with API
Dernière mise à jour
For this test, you need to create a second age attestation request.
Click on add attestation
or click on Dicover
in the left menu
Letβs select for example with Email attestation
again
Click on the Get
button of the attestation you want to request
On the next page, choose Archipels
as verifier
The page refreshes and displays the discussion with Archipels in the Chat
section
In the discussion, enter your email address and send the message
You recieve in your mailbox an email from Archipels with an OTP
Copy this OTP in your conversation and send it
DO NOT CLICK ON: "Add to my wallet
" !!!
Get the list of attestations received (attestations waiting for acceptance):
Create a new GET request like previously and enter the value: {{base_URL}}/attestations
In the Params
tab, create a key with the name Β« deliveryState Β», and set the value Β« received Β»
Alternatively, reuse the GET request you created to get the attestation, add the key Β«deliveryStateΒ» with the value Β« received Β», and unselect the deliveryState
key with the value accepted
Save the request and click SEND
In the response, you can see the ID of the attestation waiting for acceptance
Copy the ID (in the example: 145bf9c0-789d-4062-93d4-18647af415f6)
Create a new request but with the Methode POST and the value {{base_URL}}/attestations/{id}/accept-offer
replace {ID} by the ID received in response of the request above
Save the request and click Send
The response is 204 no content
when the attestation has been accepted
You will notice that 2 email attestations are now available in your wallet
Instead of setting the presentationId directly in the path, set a path variable: in the path, replace the value of the presentation ID with this key ":attestationId". You will notice that a new params part appears. Set the value with the presentation ID: