| ms.service | azure-api-management |
|---|---|
| ms.topic | include |
| author | dlepow |
| ms.author | danlep |
| ms.date | 10/07/2025 |
-
Go to your API Management instance.
-
In the left pane, in the APIs section, select APIs.
-
Under All APIs, select your GraphQL API.
-
Select the Test tab to access the test console.
-
Under Headers:
- Select the header from the Name menu.
- Enter the value in the Value box.
- Add more headers by selecting Add header.
- Delete headers by using the recycle bin button.
-
If you've added a product to your GraphQL API, add a product scope under Apply product scope.
-
In Query editor, do one of the following:
-
Select at least one field or subfield from the list in the menu to the left of the editor. The fields and subfields you select appear in the query editor.
-
Start typing in the query editor to compose a query.
:::image type="content" source="media/api-management-graphql-test/test-graphql-query.png" alt-text="Screenshot of the query editor." lightbox="media/api-management-graphql-test/test-graphql-query.png":::
-
-
Under Query variables, add variables to reuse the same query or mutation and pass different values.
-
Select Send.
-
View the Response.
:::image type="content" source="media/api-management-graphql-test/graphql-query-response.png" alt-text="Screenshot of the test query response.":::
-
Repeat the preceding steps to test different payloads.
-
When you're done testing, exit the test console.