Scribe API Authentication Different Between Production and Sandbox

I am working on some C# code to connect to the Scribe API. I am using HttpWebRequest. I have a lot of different scribe orgs running in the scribe production environment. I have tested my connection to a few of them using the Get List of Agents. I get the JSON response with no issue. So I can have a controlled area to test eh other api calls without accidentally doing something in one of the production orgs (example delete an agent) I setup a sandbox instance and made sure to turn setup security. I am able to connect to the instance and read the one agent installed in postman, but using the same C# code that connected to production, I am not able to connect to the sandbox instance. I have verified my url and credentials are correct. Outside of the base url what is different in the sandbox environment?


Here is my request method:

public string SendRequest(string username, string password, string url, string method)
string encodeLogin = Convert.ToBase64String(Encoding.UTF8.GetBytes($"{username}:{password}"));
WebResponseFactory factory = new WebResponseFactory();
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = method;
request.Headers.Add("Authorization", "Basic " + encodeLogin);
request.ContentType = ParameterContentTypeSettings.applicationjson;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
return factory.ProcessResponse(response);


(4) Answers