question

SchwartzTimothyJ-9113 avatar image
0 Votes"
SchwartzTimothyJ-9113 asked RaytheonXie-MSFT commented

Rest Api for internal sharepoint

I've been trying to connect to our internal SharePoint 2016 using postman. I've generated an ID and Secret, but I am unable to generate an access token. When using the get http://share-internal.SITENAME.com/teams/TEAM/_vti_bin/client.svc/, instead of getting an authentication error like in the other examples online, I get some difficult to understand xml and the 200 OK. Is this an issue specific to internal sharepoint?

office-sharepoint-server-developmentpartner-center-api
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

As your issue is related to SharePoint Server 2016 Development, we added "office-sharepoint-server-development" for better help.

0 Votes 0 ·

1 Answer

RaytheonXie-MSFT avatar image
0 Votes"
RaytheonXie-MSFT answered RaytheonXie-MSFT commented

Hi @SchwartzTimothyJ-9113 ,
Since the way to access sharepoint 2016 is different from sharepoint online,take following steps:
Step 1 – Get your SharePoint site’s FormDigest using Contextinfo call

  1. In Postman, the contextinfo endpoint URL for your SharePoint Site…something like: https://mySharePointSite/_api/contextinfo

  2. Set the Accept header: application/json;odata=verbose

  3. Set the html verb to POST

  4. Hit Send

With Results:
1. Copy the big string of characters inside the <d:FormDigestValue> ~~~ </d:FormDigestValue> tags

Step 2 – Make your HTML GET Request (or POST if you’re posting)

  1. Enter your endpoint URL…something like: https://mySharePointSite/_api/web/lists/getbytitle(‘MyListName’)/items?$select=Title

  2. Set the Accept header: application/json;odata=verbose

  3. Set the HTML verb to GET (if you’re getting data. POST or PUT or whatever if you’re doing something else)

  4. Add the header X-RequestDigest and paste the FormDigestValue copied above into it

  5. Hit Send, and you should be good to go


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SchwartzTimothyJ-9113 ,
I am checking to see how things are going there on this issue.

0 Votes 0 ·