Archipels Documentation
  • πŸ«‚Welcome!
    • 🏒Who are we?
    • πŸ†”What is SSI?
    • πŸ‘¨β€πŸ«Glossary of terms
  • πŸ‘©β€πŸ”§Product Overview
    • Wallet
    • Electronic Attestations
    • DIDs
    • Trust Registry
  • βš’οΈSet up
    • Create an individual wallet and request an attestation
    • Configure an access token
    • Create a Webhook
    • Create your test environment
    • Get your DID wallet
  • πŸ—οΈCreate attestation request
    • 🧩Get and Accept Attestation
      • API call : get attestations in my wallet
      • Accept attestation
    • πŸ—οΈCreate an Onboarding attestation request against Archipels
      • Attestation request
      • Accept attestation
    • πŸ—οΈCreate an email attestation request against Archipels
      • Attestation request
      • Accept attestation
  • πŸ“ƒIssue attestation
    • Create a second wallet and configure this new environment
    • Create a schema attestation
    • Create a connection: Create an invitation
    • Create a connection: Accept an invitation
    • Attestation send offer
    • Accept attestation
  • πŸ”€Send presentation request
    • πŸͺͺSend a Presentation
      • Create a third wallet and configure this new environment
      • Create a connection
      • Send Presentation request
      • Get the list of presentation requests (not available currently)
      • Get the presentation requests
      • Get the list of valid attestations
      • Send/Show presentation
      • Get the presentation
    • πŸ“‘Send several Presentations
      • Send Presentations request
      • Get the presentation requests
  • βž•Other features
    • πŸ“©Messages
      • Send a message
    • πŸ“ƒDelete an attestation
      • Delete attestation
  • 🏁API: COLLECTIONS
  • List of schemes
  • πŸ”—Links
    • Website
    • Recruitement
    • Doc for Archipels Certify
    • Trust Registry
PropulsΓ© par GitBook
Sur cette page

Cet article vous a-t-il Γ©tΓ© utile ?

  1. Create attestation request
  2. Get and Accept Attestation

Accept attestation

In this section, you will learn how to accept an attestation with API

PrΓ©cΓ©dentAPI call : get attestations in my walletSuivantCreate an Onboarding attestation request against Archipels

Dernière mise à jour il y a 10 mois

Cet article vous a-t-il Γ©tΓ© utile ?

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

[
    {
        "id": "145bf9c0-789d-4062-93d4-18647af415f6",
        "source": "Archipels",
        "issuanceDate": "2024-07-16T08:58:00.531Z",
        "status": "valid",
        "deliveryState": "received",
        "expirationDate": "",
        "attributes": {
            "emailAddress": "renaud+doc2@archipels.io"
        },
        "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 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:

πŸ—οΈ
🧩