1

Following this similar question, posted a year ago, Where is the official documentation on how to retrieve an access token? I saw the two answers to the prior question were vastly different in methods. Other APIs I've worked with had a much simpler way to obtain a bearer/access token.

Could someone currently working with Sharepoint API provide how they request an access token for requests like this:

GET https://{site_url}/_api/web/lists/GetByTitle('List Title')
Authorization: "Bearer " + accessToken
Accept: "application/json;odata=verbose"
HC LW
  • 131
  • 11
  • I'm new to Sharepoint. Apologies if I am slow to understand what sharepoint add-ins are. Though I think they may be relevant here? – HC LW Jul 15 '22 at 18:28
  • Does your question have a UI or is it headless? Are you authenticating against commercial (.sharepoint.com) or government (.sharepoint.us) tenants? Does the authentication token expire? Remember, the Bearer token is an ACCESS token, not an AUTHENTICATION token. How you acquired your authentication token will also affect how you get the access token. A little more information would help us provide the best possible answer for you. – Cornelius J. van Dyk Jul 16 '22 at 16:25

0 Answers0