Accept attestation
In this section, you will learn how to accept an attestation with API
For this test, you need to create a second age attestation request.
Click on
add attestationor click onDicoverin the left menuLet’s select for example with
Email attestationagainClick on the
Getbutton of the attestation you want to requestOn the next page, choose
Archipelsas verifierThe page refreshes and displays the discussion with Archipels in the
ChatsectionIn 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
Paramstab, 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
deliveryStatekey with the valueaccepted

Save the request and click
SENDIn the response, you can see the ID of the attestation waiting for acceptance
[
{
"id": "145bf9c0-789d-4062-93d4-18647af415f6",
"source": "Archipels",
"issuanceDate": "2024-07-16T08:58:00.531Z",
"status": "valid",
"deliveryState": "received",
"expirationDate": "",
"attributes": {
"emailAddress": "[email protected]"
},
"schema": {
"icon": "https://connect-prod.s3.fr-par.scw.cloud/icons/attestations/wallet/email.svg",
"did": "7yrC9GegTsAAHz5Qc1CJpq:2:Email attestation:1.0",
"name": "Email attestation"
},
"provider": {
"name": "aries"
},
"issuer": {
"did": "7yrC9GegTsAAHz5Qc1CJpq"
}
}
]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
SendThe response is
204 no contentwhen the attestation has been accepted

You will notice that 2 email attestations are now available in your wallet


Mis à jour
Ce contenu vous a-t-il été utile ?