# Via API

## Query attributes from existing passport holders

Quadrata provides an API for integrators to query attributes values from an existing passport holder

{% hint style="success" %}
Production URL: <https://prod.quadrata.com/api/v1/attributes/query>
{% endhint %}

<mark style="color:blue;">`GET`</mark> `https://int.quadrata.com/api/v1/attributes/query`

Query attributes (values, verifiedAt, status) from an existing passport holder.

#### Query Parameters

| Name                                         | Type          | Description                 |
| -------------------------------------------- | ------------- | --------------------------- |
| wallet<mark style="color:red;">\*</mark>     | String        | User Wallet Address         |
| attributes<mark style="color:red;">\*</mark> | List\[String] | List of Required Attributes |

#### Headers

| Name                                                                  | Type   | Description                                 |
| --------------------------------------------------------------------- | ------ | ------------------------------------------- |
| Authorization: Bearer \<JWT\_TOKEN><mark style="color:red;">\*</mark> | String | JWT accessToken (returned by /api/v1/login) |

{% tabs %}
{% tab title="200: OK Attribute values" %}

```json
// Example Response
{
  "data": {
    "queryResult": {
      "ACCREDITED_INVESTOR_US": {
        "status": "",
        "value": "",
        "verifiedAt": ""
      },
      "AML": {
        "status": "READY",
        "value": "1",
        "verifiedAt": "1685658188"
      },
      "COUNTRY": {
        "status": "READY",
        "value": "US",
        "verifiedAt": "1685658115"
      },
      "DID": {
        "status": "READY",
        "value": "0xc355dc9ddce1e50cb737a2b4354b5d3eb42fc167ee0aceae28dd965ef4b752cc",
        "verifiedAt": "1685658115"
      }
    },
    "type": "attributes"
  }
}
```

{% endtab %}
{% endtabs %}
