# Generating subgraph studio api key

1. Go on [subgraph studio](https://thegraph.com/studio/) and connect your wallet and complete the account creation flow if it's the first time. If not connect a wallet that already has an account

   <figure><img src="/files/3T7SDCT7I9GqWgfIIxJI" alt=""><figcaption></figcaption></figure>
2. Sign the message from your wallet to verify ownership
3. Click on "API Keys"

   <figure><img src="/files/LbAjSQYsjj4mtqhcEBNa" alt=""><figcaption></figcaption></figure>
4. Create a new api key

   <figure><img src="/files/EdHoN3XFQWvyK7wNVqGT" alt=""><figcaption></figcaption></figure>
5. Give your API key a name and then set the spending limit
6. Copy the API key and pass it in the `subgraphApiKey` prop in the widget

   <figure><img src="/files/C7ftsrLPj6HCJ4UrFHd9" alt=""><figcaption></figcaption></figure>
7. You can additionally add a whitelisted domain list so the key only works on specific domains


---

# 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.teller.org/teller-widget/generating-subgraph-studio-api-key.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.
