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. Graph Explorer supports only delegated 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 that 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 or 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 choose a sample query, and sample data shows in the response preview.
To make a request:
- Select a sample query and run it.
- Get the HTTP response code.
- View the response from the Microsoft Graph API with sample data.
When you sign in to Graph Explorer and choose the same query, the response is returned with real data from the tenant that you signed in to.
Run non-GET requests in Graph Explorer
To try POST, PUT, PATCH, and DELETE requests, sign in to Graph Explorer by using a Microsoft 365 account. This can be an organizational account for testing or demonstration purposes. 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 by using your organizational account, running a non-GET request might 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.
- Select 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 then select Add.