
Do you want to try connecting through SharePoint using Postman? Here is the step-by-step tutorial how to connect Postman with REST API
Go to <sitecollectionurl>/_layouts/15/appregnew.aspx to login your app in SharePoint. And following the following steps:
You should be redirected to a success page
After registering, we need to define what kind of permission we want to give the app.
Go to <sitecollectionurl>/_layouts/15/appinv.aspx
Note: if you want to give permission to your whole tenant, you need to use the following url <SP admin url>/_layouts/15/appinv.aspx
For the “App Id,” try entering in the “Client ID” that we generated earlier, then press the “Lookup” button.
While for the “Permission Request XML” typer the following. Make you replace your Scope
<AppPermissionRequests AllowAppOnlyPolicy="true"><AppPermissionRequest Scope="http://<<tenanturl>>/content/sitecollection/web" Right="FullControl" /></AppPermissionRequests>
If you know your Tenant ID, feel free to skip this part. But here is the URL to get your Tenant ID
Go to <sitecollectionurl>/_layouts/15/appprincipals.aspx
Your Tenant ID will be the GUID after the ”@” character
We need to generate first the access token of SharePoint before we can start using SharePoint REST API. Open your postman and do the following.
URL: https://accounts.accesscontrol.windows.net/<Tenant ID>/tokens/OAuth/2/Method: PostHeader: {"grant_type": "client_credentials","client id": <Client ID>@<Tenant ID>"client secret": <Client Secret>""resource": "00000003-0000-0ff1-ce00-000000000000/<sharepoint root site>.sharepoint.com@<Tenant ID>"}
After hitting Send in Postman, you should receive an “access_token” reply
Copy the whole “Access token,” and feel free to use it to access your SharePoint REST API using Postman. As an example, I am going to get all available Lists on my site
URL: https://blahblah.sharepoint.com/sites/BillyPeraltaSite/_api/web/listsMethod: GETHeader: {"Authorization": "Bearer <access_token>","Accept": "application/json;odata=verbose""Content-Type": "application/json;odata=verbose"}