# Accept attestation

In the previous section you sent an attestation request. At the same time a webhook was sent to the holder:

```
{
  "type": "AttestationOfferReceived",
  "payload": {
    "connectionId": "694b8024-e34c-4aaa-b3c4-dd114f3cba4c",
    "walletDid": "7e2uxoCMDTErr9jsuKpSHH",
    "attestationId": "5cf231d3-30ab-4f05-b5c8-d6dd568c4cef",
    "ssiProvider": "aries"
  },
  "timestamp": "2024-09-05T18:15:08.538Z"
}
```

* Then, retrieve the attestation ID from the webhook. Here the ID is <mark style="background-color:orange;">5cf231d3-30ab-4f05-b5c8-d6dd568c4cef</mark>

{% hint style="info" %}
You can also retreive the attestationId thanks to the call GET attestation, with the Key « <mark style="background-color:orange;">deliveryState</mark> » set to the value « <mark style="background-color:orange;">received</mark> »
{% endhint %}

**Accepte the attestation offer:**&#x20;

* 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 from the webhook Attestation\_offer\_received

<figure><img src="https://3286990890-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKgeupdY3hrGssCi0E9aI%2Fuploads%2FtEmXjuN31JDXJsgapuTz%2Fimage.png?alt=media&#x26;token=b0f79091-8cde-43de-bb8e-1429fe283be0" alt=""><figcaption></figcaption></figure>

* Save and click `SEND`
* The response is `204` when the attestation has been accepted
* At the same time, a webhook notification is received for the holder:

```
{
  "type": "AttestationReceived",
  "payload": {
    "walletDid": "7e2uxoCMDTErr9jsuKpSHH",
    "ssiProvider": "aries",
    "attestationId": "5cf231d3-30ab-4f05-b5c8-d6dd568c4cef,
    "connectionId": "694b8024-e34c-4aaa-b3c4-dd114f3cba4c"
  },
  "timestamp": "2024-09-05T18:17:15.325Z"
}
```


---

# Agent Instructions: 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/create-an-email-attestation-request-against-archipels/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.
