> For the complete documentation index, see [llms.txt](https://docs-v1.archipels.io/archipels-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-v1.archipels.io/archipels-documentation/create-attestation-request/get-and-accept-attestation/accept-attestation.md).

# Accept attestation

For this test, you need to create a second age attestation request.

* Click on `add attestation` or click on `Dicover` in the left menu&#x20;
* Let’s select for example with `Email attestation` again
* Click on the `Get` button of the attestation you want to request&#x20;
* 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: <mark style="background-color:orange;">{{base\_URL}}/attestations</mark>&#x20;
* In the `Params` tab, create a key with the name « <mark style="background-color:orange;">deliveryState</mark> », and set the value « <mark style="background-color:orange;">received</mark> »
* Alternatively, reuse the GET request you created to get the attestation, add the key «<mark style="background-color:orange;">deliveryState</mark>» with the value « <mark style="background-color:orange;">received</mark> », and unselect the `deliveryState` key with the value `accepted`

<figure><img src="/files/pJ7095Iq83vJY6kV0ZvI" alt=""><figcaption></figcaption></figure>

* 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 <mark style="background-color:orange;">{{base\_URL}}/attestations/{id}/accept-offer</mark>
* replace {ID} by the ID received in response of the request above

<figure><img src="/files/B5gYOz30fHZMxHPWG3F2" alt=""><figcaption></figcaption></figure>

* Save the request and click `Send`
* The response is `204 no content` when the attestation has been accepted

<figure><img src="/files/7GR8o1PYX59j1yOaCPkk" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/KUCeWQSl0Tp9c9gmpTFR" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
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 "<mark style="background-color:orange;">:attestationId</mark>". You will notice that a new params part appears. Set the value with the presentation ID:
{% endhint %}

<figure><img src="/files/aaXevAnUx9436IYTkaYv" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-v1.archipels.io/archipels-documentation/create-attestation-request/get-and-accept-attestation/accept-attestation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
