# Hat Details

## Overview

In Hats Protocol, each hat includes a [details field](https://github.com/Hats-Protocol/hats-protocol/blob/cccb71a061cdb9095af7d11dfdb47026993d8c4e/src/Hats.sol#L67), which is used for arbitrary metadata about the hat, such as a name, description, and other properties like authorities and responsibilities associated with the hat.

A common way to use this field is to store the data on IPFS as a JSON object, and set the hat's details field with the object's CID (Content Identifier). This method allows to add rich metadata about a hat, while keeping the gas costs minimal.&#x20;

This package provides utility function to handle hats details, by both pinning metadata JSON objects to IPFS and reading from it.&#x20;

It was designed to work both in the browser and in Node.js. You can find the source code [here](https://github.com/Hats-Protocol/details-sdk).

## Content

{% content-ref url="/pages/2E9u7UIiBanGK41U1E5i" %}
[Getting Started](/for-developers/v1-sdk/hat-details/getting-started.md)
{% endcontent-ref %}

{% content-ref url="/pages/dBaW56nk5CQEb4oIYRcW" %}
[Usage](/for-developers/v1-sdk/hat-details/usage.md)
{% endcontent-ref %}


---

# 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/for-developers/v1-sdk/hat-details.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.
