Use Graph Explorer to try Microsoft Graph APIs
Use Graph Explorer to:
- Make Microsoft Graph API requests (GET, POST, PUT, PATCH and DELETE) and see responses including response code and any headers and bodies.
- Consent to permissions.
- Add a request body and request header to your query.
- View and copy the access token.
- View sample queries for different services in Microsoft Graph.
- View, download, or delete the queries you ran in the last 30 days.
- Access Microsoft Graph Toolkit components and adaptive cards for some sample queries.
- Share queries, including the request body and request headers.
Graph Explorer handles the authentication process for you. Customize the experience by collapsing the sidebar and changing the theme.
Graph Explorer includes the following elements:
- HTTP verb drop-down list
- API version drop-down list
- Request query address bar
- Sample query
- Documentation link for the sample query
Make a GET request in Graph Explorer
To run a GET request in Graph Explorer, you don’t have to be signed in. Just click a sample query and sample data will show in the response preview.
To make a request:
- Select a sample query and run it.
- Get the HTTP response code.
- See the response from the Microsoft Graph API with sample data.
When you sign in to Graph Explorer and click the same query, the response will be returned with real data from the tenant you signed in to.
Running non-GET requests in Graph Explorer
To try POST, PUT, PATCH and DELETE requests, sign in to Graph Explorer using a Microsoft 365 account.This can be an organizational account for testing or demonstration purpose. To get a free sample Microsoft 365 E5 developer subscription, along with tools and other resources to help you build solutions for the Microsoft 365 platform, join the Microsoft 365 Developer Program.
If you choose to sign in using your organizational account, running a non-GET request can affect the data in the tenant.
For example, to run a POST request, select POST in the drop-down list for the HTTP verb, and add a request body and request headers as appropriate.
- Select a POST sample query.
- Update Request body; for example, give the application a name.
- Click Run query.
- See the response from the Microsoft Graph API.
To view the response in a format other than the default JSON, choose the Request headers tab in the request pane, define the key/value pair, and click Add.