# Root Call Not Authorized

**URL:** <https://discuss.dwolla.com/t/root-call-not-authorized/4534>\
**Category:** API Support\
**Created:** [November 11, 2017, 6:51pm UTC](https://discuss.dwolla.com/t/root-call-not-authorized/4534 "2017-11-11T18:51:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rtiktin](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rtiktin](https://discuss.dwolla.com/u/rtiktin)\
**Post date:** [November 11, 2017, 6:51pm UTC](https://discuss.dwolla.com/t/root-call-not-authorized/4534/1 "2017-11-11T18:51:25Z")

</div>

```
        I successfully retrieved the access token then immediately execute the C# code below. I get this exception. What am I doing wrong?

       Response: WebException: The remote server returned an error: (401) Unauthorized.

       HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://api-sandbox.dwolla.com/");         
        request.ContentType = "application/vnd.dwolla.v1.hal+json";
        request.Accept = "application/vnd.dwolla.v1.hal+json";
        request.Headers.Add("Authorization", "Bearer " + Token.Access_token);
        var response = (HttpWebResponse)request.GetResponse();
        String responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
        return responseString;
```
