I am using SharePoint account like in screenshot heresharepoint layout

I am trying to get folder via SharePoint REST API but I am unable to pass access_token because I dont know how to fetch access_token from sharepoint API.



1 Answer 1


Have you even tried to make a GET request?

You don't need to give access token for "GET" requests, for example:

    var url = "/_api/web/lists/getbytitle('Folder Name')/items";

        url: _spPageContextInfo.webAbsoluteUrl + url,
        type: "GET",
        headers: {
            "accept": "application/json;odata=verbose",
        success: function (data) {
        error: function (error) {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.