Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so that you can create better APIs faster.
You can use the Microsoft Graph Postman collection to get started with Microsoft Graph APIs in minutes.
This article explains how to get up and running with Postman and Microsoft Graph. You can also explore Microsoft Graph APIs directly in your web browser by using Graph Explorer.
For details about how to use Postman, follow the steps in this article or watch the Getting started with Microsoft Graph Postman workspace video.
graph.microsoft.com
with the Microsoft Graph service root endpoint for your national cloud.login.microsoftonline.com
with the Azure AD endpoint for your national cloud.graph.microsoft.com
with the Microsoft Graph service root endpoint for your national cloud.To use the Postman collection, fork it to your own Postman workspace. Do this from the web browser.
You are redirected to a fork of the main Microsoft Graph Postman collection in your own workspace.
To use this particular Postman collection in your web browser, download the Postman Desktop Agent. You can't use Postman for the web without this due to CORS restrictions in the web browser.
You don't need the agent if you're using the Postman for Windows app. If you open Postman for Windows, you see this forked collection in your workspace.
To use this collection in your own developer tenant, create an Azure Active Directory (Azure AD) application and give it the appropriate permissions for the requests that you want to call. If you don't have a developer tenant, you can sign up for one through the Microsoft 365 Developer Program.
Postman
.https://oauth.pstmn.io/v1/browser-callback
.Mail.
, expand the Mail options, and then select Mail.Read
.User.
, and then select Application Permissions.User.Read.All
.The application now has two permissions configured. Mail.Read
is added as a delegated permission, which is a permission that requires a signed-in user. The application can read mail on behalf of the user. User.Read.All
is added as an application permission, which is a permission that does not require a signed-in user. The application can read users in Azure AD.
In this step, you set up the environment variables in Postman that you use to retrieve an access token.
ClientID
, set the Current value to the application (client) ID value from the previous step.ClientSecret
, set the Current value to the client secret value from the previous step.TenantID
, set the Current value to the directory (tenant) ID value from the previous step.Because this is the first time that you are running a request as a delegated authentication flow, you need to get an access token.
Authorization Code
.You now have a valid access token to use for delegated requests.
Inside the Delegated folder are requests for various Microsoft Graph workloads that you can call.
You have now successfully made a Microsoft Graph call using delegated authentication.
Because this is the first time that you are running a request as an application authentication flow, you need to get an access token.
You now have a valid access token to use for application requests.
Inside the Application folder are requests for various Microsoft Graph workloads that you can call.
You have now successfully made a Microsoft Graph call using application authentication.
You can follow these steps to make other requests to Microsoft Graph. Remember that you have to add permissions to your Azure AD application for other requests to work; otherwise, you get permission denied errors in your responses.
If you want to contribute your own requests, you need a Postman license. You can make your changes to the forked collection, and then hover over the collection top node and select Create pull request.
Certain conditional access policies configured by your organization's administrators can block the authentication flow from Postman. To explore alternatives, contact your administrators.