Skip to content

Commit

Permalink
Update query URL and authorization header in querying-the-graph.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjerryokolo committed Jun 17, 2024
1 parent 1703223 commit ab8e626
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions website/pages/en/querying/querying-the-graph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,20 @@ Each subgraph published to The Graph Network has a unique query URL in Graph Exp

![Query Subgraph Pane](/img/query-subgraph-pane.png)

<<<<<<< HEAD
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. 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.
Replace ${api_key} with your actual API key.

You can create and manage your API keys in the [Subgraph Studio](https://thegraph.com/studio) in the "API Keys" section. Learn more about how to use Subgraph Studio [here](/deploying/subgraph-studio).
>>>>>>> fe7713d0 (Add instructions for adding bearer token to API requests)

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).

Expand Down

0 comments on commit ab8e626

Please sign in to comment.