Attestation request
In this section we describe how to create new attestation requests
Create an attestation request using API. In this example, you will request an email attestation.
Get the connection ID:
Create a new GET request like previously and enter the value: Β« {{base_URL}}/connections Β»
In the Params tab, add a Key "status" with the Value "active"
Save the request and click
SEND
Response:
In our example, the connection ID for the issuer (DID Gjr2SvNwhHe3ZhmUNjKqHT) is the first id: 694b8024-e34c-4aaa-b3c4-dd114f3cba4c
Your connectionID will have a specific value. Don't reuse the one in the example
If the request doesn't provide any existing connection, it means you have never been connected with one of the issuer from the list, or the connection has been closed or is pending. In this case you need to create the connection. Go to the page "Accept an invitation"
Now that you have all the data, you can create the Attestation send request
Create a new request but with the Method POST and the value {{base_URL}}/messages
Select the tab
Body
, then select Β« raw Β» and copy/paste this json request:
Save the request and click on
SEND
The response is
204 no content
when your request is received
At the same time, a webhook is sent to the holder:
Now that you have initiated the email attestation request, send your email address
Create a new request or modify the one you just created with the Method POST and the value {{base_URL}}/messages
Select the tab
Body
, then select Β« raw Β» and copy/paste this json request:
Save the request and click on
SEND
The response is
204 no content
when your request is receivedAt the same time, a webhook is sent to the holder:
Check your email box for an email sent from noreply@archipel.io
copy the OTP
Create a new request or modify the one you just created with the Method POST and the value {{base_URL}}/messages
Select the tab
Body
, then select Β« raw Β» and copy/paste this json request (replace 123456 by the OTP received):
Save the request and click on
SEND
The response is
204 no content
when your request is receivedAt the same time, a webhook is sent to the holder:
Dernière mise à jour