> For the complete documentation index, see [llms.txt](https://docs.teller.org/teller-widget/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.teller.org/teller-widget/generating-subgraph-studio-api-key.md).

# 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="https://235952736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50IvFxALM8CkQEDqGRgY%2Fuploads%2FrWIH2A5i8zCU2OERwuU1%2FScreenshot%202024-09-19%20at%2011.01.47%E2%80%AFPM.png?alt=media&amp;token=c57945ef-5c5e-46d0-a0a6-8496439076a1" alt=""><figcaption></figcaption></figure>
2. Sign the message from your wallet to verify ownership
3. Click on "API Keys"

   <figure><img src="https://235952736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50IvFxALM8CkQEDqGRgY%2Fuploads%2F9GyxCgj7dUEyDdxH2aEY%2FScreenshot%202024-09-19%20at%2011.02.56%E2%80%AFPM.png?alt=media&amp;token=8d24debe-f0f0-45e3-8670-42344a674d0e" alt=""><figcaption></figcaption></figure>
4. Create a new api key

   <figure><img src="https://235952736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50IvFxALM8CkQEDqGRgY%2Fuploads%2FoquLF47iAkco7RoCFJwY%2FScreenshot%202024-09-19%20at%2011.03.17%E2%80%AFPM.png?alt=media&amp;token=dda9ab13-1b4d-47e8-9094-fddff0bce291" 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="https://235952736-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50IvFxALM8CkQEDqGRgY%2Fuploads%2FUsWQHjwItWyzU9pWfIoJ%2FScreenshot%202024-09-19%20at%2011.03.51%E2%80%AFPM.png?alt=media&amp;token=6554c2e5-bfe4-4a59-83ad-b712b6ce8075" alt=""><figcaption></figcaption></figure>
7. You can additionally add a whitelisted domain list so the key only works on specific domains
