> 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/create-an-onboarding-attestation-request-against-archipels/attestation-request.md).

# 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 onboarding attestation.**

**Get the connection ID:**

* Create a new GET request like previously and enter the value: « <mark style="background-color:orange;">{{base\_URL}}/connections</mark> »
* In the Params tab, add a Key "<mark style="background-color:orange;">status</mark>" with the Value "<mark style="background-color:orange;">active</mark>"
* Save the request and click `SEND`

Response:

```
{
    "count": 2,
    "results": [
        {
            "createdAt": "2024-06-21T07:31:07.241Z",
            "updatedAt": "2024-06-21T07:31:07.241Z",
            "id": "16787c48-7548-4f41-9770-a16212548866",
            "contact": {
                "did": "Gjr2SvNwhHe3ZhmUNjKqHT",
                "organization": {
                    "siren": "889098612",
                    "address": "45-47 Boulevard Paul Vaillant Couturier, 94200 Ivry-sur-Seine, FRANCE",
                    "name": "ARCHIPELS"
                },
                "wallet": {
                    "type": "business",
                    "label": "Archipels",
                    "dids": [
                        "Gjr2SvNwhHe3ZhmUNjKqHT"
                    ]
                }
            },
            "label": "Archipels",
            "status": "active"
        },
        {
            "createdAt": "2024-06-10T14:54:21.064Z",
            "updatedAt": "2024-06-10T14:54:21.064Z",
            "id": "ce62c01c-3534-4530-a035-1a46ac3a6d4a",
            "contact": {
                "did": "X8SoDjXKfrRZgFJ8m6MYu3",
                "organization": {
                    "siren": "338885718",
                    "address": "5-7 Avenue de Paris, 94307 Vincennes Cedex, FRANCE",
                    "name": "INFOGREFFE"
                },
                "wallet": {
                    "type": "business",
                    "label": "Infogreffe",
                    "dids": [
                        "X8SoDjXKfrRZgFJ8m6MYu3"
                    ]
                }
            },
            "label": "Infogreffe",
            "status": "active"
        }
    ]
}

```

In our example, the connection ID for the issuer Archipels (DID Gjr2SvNwhHe3ZhmUNjKqHT) is the first id: 16787c48-7548-4f41-9770-a16212548866. So you need to identify the Archipels wallet (label: "Archipels", type: "business") and copy the corresponding connection ID.

{% hint style="warning" %}

* Your connectionID will have a specific value. Don't reuse the one in the example
* Archipels business DID will be different from the example provided
  {% endhint %}

{% hint style="danger" %}
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:\
Option 1: request an attestation like describe in the [Set up](/archipels-documentation/set-up/create-an-individual-wallet-and-request-an-attestation.md) chapter or in [get attestation](/archipels-documentation/create-attestation-request/get-and-accept-attestation/api-call-get-attestations-in-my-wallet.md) chapter\
Option 2: go to the page "[Accept an invitation](broken://pages/isdJgVoMvdKPiVcytTAw)"
{% endhint %}

Now that you have all the data, you can create the Attestation send request using *`Chats`* feature

* Create a new request but with the Method POST and the value <mark style="background-color:orange;">{{base\_URL}}/messages</mark>
* Select the tab `Body`, then select « raw » and copy/paste this json request (replacing the connectionId by your value):

```
{
    "content": "/onboarding_attestation",
    "connectionId": "16787c48-7548-4f41-9770-a16212548866",
    "metadata":{
        "init": true
    }
}
```

<figure><img src="https://3286990890-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKgeupdY3hrGssCi0E9aI%2Fuploads%2FhQ9fmSkvYuc9hmS5hPRp%2Fimage.png?alt=media&amp;token=06a608f0-d677-4b03-8124-db1a1677b01d" alt=""><figcaption></figcaption></figure>

* Save the request and click on `SEND`
* The response is `204 no content` when your request is received&#x20;

<figure><img src="https://3286990890-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKgeupdY3hrGssCi0E9aI%2Fuploads%2FUigneVC0BMWHErSatY0Y%2Fimage.png?alt=media&amp;token=9626b870-189f-4499-ab90-9954dfaee97f" alt=""><figcaption></figcaption></figure>

* At the same time, a webhook is sent to the holder:

```
{
  "payload": {
    "content": "/onboarding_attestation",
    "connectionId": "d557c7ae-9fbe-4677-a4aa-c1c700739806"
  },
  "timestamp": "2024-04-16T08:28:59.399Z",
  "type": "MessageInitiated"
}
```
