diff --git a/website/pages/en/deploying/subgraph-studio-faqs.mdx b/website/pages/en/deploying/subgraph-studio-faqs.mdx index 8761f7a31bf6..8d4a6e7defc4 100644 --- a/website/pages/en/deploying/subgraph-studio-faqs.mdx +++ b/website/pages/en/deploying/subgraph-studio-faqs.mdx @@ -18,13 +18,32 @@ Yes! You can create multiple API Keys to use in different projects. Check out th After creating an API Key, in the Security section, you can define the domains that can query a specific API Key. -## 5. Can I transfer my subgraph to another owner? +## 5. How do I add a bearer token ? + +A bearer token can be added to the authorization header of your API request. + +Example: +Update the query path: + +```bash +../api/${api_key}/deployments/... -> ../api/deployments/... +``` + +Add the authorization header: + +```bash +authorization: Bearer ${api_key} +``` + +Replace `${api_key}` with your actual API key. + +## 6. Can I transfer my subgraph to another owner? Yes, subgraphs that have been published to Arbitrum One can be transferred to a new wallet or a Multisig. You can do so by clicking the three dots next to the 'Publish' button on the subgraph's details page and selecting 'Transfer ownership'. Note that you will no longer be able to see or edit the subgraph in Studio once it has been transferred. -## 6. How do I find query URLs for subgraphs if I’m not the developer of the subgraph I want to use? +## 7. How do I find query URLs for subgraphs if I’m not the developer of the subgraph I want to use? You can find the query URL of each subgraph in the Subgraph Details section of Graph Explorer. When you click on the “Query” button, you will be directed to a pane wherein you can view the query URL of the subgraph you’re interested in. You can then replace the `` placeholder with the API key you wish to leverage in Subgraph Studio. diff --git a/website/pages/en/querying/querying-the-graph.mdx b/website/pages/en/querying/querying-the-graph.mdx index a573683573c5..b21114e1155c 100644 --- a/website/pages/en/querying/querying-the-graph.mdx +++ b/website/pages/en/querying/querying-the-graph.mdx @@ -13,7 +13,18 @@ Each subgraph published to The Graph Network has a unique query URL in Graph Exp ![Query Subgraph Pane](/img/query-subgraph-pane.png) Learn more about querying from an application [here](/querying/querying-from-an-application). - -As you can notice, this query URL must use a unique API key. You can create and manage your API keys in [Subgraph Studio](https://thegraph.com/studio), in the "API Keys" section. Learn more about how to use Subgraph Studio [here](/deploying/subgraph-studio). +As you can notice, this query URL must use a unique API key. A bearer token can also be used to authenticate the query. + +Update the query path: +```bash +../api/${api_key}/deployments/... -> ../api/deployments/... +``` +Add the authorization header: +```bash +authorization: Bearer ${api_key} +``` +Replace ${api_key} with your actual API key. + + You can create and manage your API keys in [Subgraph Studio](https://thegraph.com/studio), in the "API Keys" section. Learn more about how to use Subgraph Studio [here](/deploying/subgraph-studio). Subgraph Studio users start on a Free Plan, which allows them to make 100,000 queries per month. Additional queries are available on the Growth Plan, which offers usage based pricing for additional queries, payable by credit card, or GRT on Arbitrum. You can learn more about billing [here](/billing).