Skip to content

Commit 6284e6e

Browse files
committed
Updating
1 parent 6036093 commit 6284e6e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

website/src/pages/en/subgraphs/querying/managing-api-keys.mdx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,17 @@ A new window will pop up:
3232
3333
When you query The Graph from your dapp, you can use your API key in two ways:
3434

35-
1. In the URL (Optimal Method for Subgraph Queries):
35+
1. In the URL (optimal method for Subgraph queries):
3636

37-
Append the API Key directly to your query endpoint:
37+
Include the API Key directly to your query endpoint:
3838

3939
```
4040
https://gateway.thegraph.com/api/<YOUR_API_KEY>/subgraphs/id/<SUBGRAPH_ID>
4141
```
4242

43-
> [!NOTE] This allows you to use various GraphQL client libraries to query Subgraphs and populate your application with indexed data.
43+
2. As a bearer Token:
4444

45-
2. As a Bearer Token:
46-
47-
Include your API Key in the request header for added security:
45+
Include your API Key in the `Authorization` request header for added security:
4846

4947
```
5048
Authorization: Bearer <YOUR_API_KEY>

0 commit comments

Comments
 (0)