# /tokens/:address/:id/uri

{% hint style="info" %}
You do NOT need an API key for this endpoint
{% endhint %}

<mark style="color:green;">`GET`</mark>`/tokens/:address/:id/uri`

The `/tokens/:address/:id/uri` endpoint retrieves URI data about tokens on any chain.

### **Headers**

None

### **Path Variables**

<table><thead><tr><th width="215">Name</th><th width="130">Mandatory?</th><th width="119">Default</th><th>Value</th></tr></thead><tbody><tr><td><code>:address</code></td><td>Yes</td><td></td><td>The address of the contract we want URI data for.</td></tr><tr><td><code>:id</code></td><td>Yes</td><td></td><td>The token Id.</td></tr></tbody></table>

### **Params**

<table><thead><tr><th width="215">Name</th><th width="130">Mandatory?</th><th width="119">Default</th><th>Value</th></tr></thead><tbody><tr><td><code>b</code></td><td>Yes</td><td></td><td>The chain the contract is on</td></tr><tr><td><code>s</code></td><td>No</td><td><code>0</code></td><td>The token standard for the contract:<br>0: ERC721<br>1: ERC1155</td></tr></tbody></table>

### **Response Body**

The response body will be whatever is defined in the target for the URI for that token on that chain.\
An example is provided below.

### **Example Request**

```
GET https://api.bless.net/tokens/0xbfe75b036bc41a3cbbb55b5aaec804706e9d3751/:id/uri?b=11155111
```

### **Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "image": "ipfs://QmQRMzNX9bcdnEuMx4qhsQGWxJ2BA3BNZZVybu3nZxma5d",
    "attributes": [
        {
            "trait_type": "Mouth",
            "value": "Bored Cigarette"
        },
        {
            "trait_type": "Eyes",
            "value": "3d"
        },
        {
            "trait_type": "Hat",
            "value": "Sea Captain's Hat"
        },
        {
            "trait_type": "Background",
            "value": "Army Green"
        },
        {
            "trait_type": "Fur",
            "value": "Pink"
        }
    ]
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "message": "Please provide chainId and delegate address as query parameters."
}
```

{% endtab %}
{% endtabs %}


---

# 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.bless.net/blessnet-api/tokens-address-id-uri.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.
