# Finding a Hat's Token ID

To find a hat's token ID, locate and select that hat in the [Hats app](https://app.hatsprotocol.xyz) and click the copy icon to the right of the hat's "pretty ID" (found in the green box below).&#x20;

<figure><img src="/files/1sUXfig73VkExhkzxDUU" alt=""><figcaption></figcaption></figure>

In decimal format, the hat's token ID will look something like this: `26960769425706497914046077453500346168786499100899720886694455541760`.

In hexadecimal format, the same hat's token ID will look something like this: `0x0000000100020001000100000000000000000000000000000000000000000000`.

The Hats app converts the hexadecimal version to the "pretty id" format `1.2.1.1`:

* `0x00000001` converts to `1`
* `0x0002` converts to `2`
* `0x0001` converts to `1`
* `0x0001` converts to `1`

*For more technical details on how the Hats addressable ID system works, see the* [*Hat IDs*](/for-developers/hats-protocol-for-developers/hat-ids.md) *page within the "For Developers" section of these docs.*


---

# 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.hatsprotocol.xyz/using-hats/connecting-hats-w-permissions-and-authorities/connecting-hats-to-token-gates/finding-a-hats-token-id.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.
