Fail to get token

hi, im using c# to get authenticated. getting empty response.
need some help to figure why .

url =@“”;

            ServicePointManager.Expect100Continue =true;
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3
                | SecurityProtocolType.Tls12
                | SecurityProtocolType.Tls11
                | SecurityProtocolType.Tls;

            ServicePointManager.ServerCertificateValidationCallback =delegate {returntrue; };
            var request = (HttpWebRequest)WebRequest.Create(url);

            request.ContentType ="application /json";
            request.Method ="POST";
            request.Timeout = Timeout.Infinite;
            request.KeepAlive =true;

            request.AllowAutoRedirect =false;
            request.ReadWriteTimeout = 30000;
            request.PreAuthenticate =true;
            request.Credentials = CredentialCache.DefaultCredentials;

            request.Accept ="application/json";
            using (var streamWriter =new StreamWriter(request.GetRequestStream(), System.Text.Encoding.ASCII))
               string json =new JavaScriptSerializer().Serialize(new
                    authorization ="Basic mysecretfortest"
           string Expiration =string.Empty;

           var responsessss = (HttpWebResponse)request.GetResponse();
           using (var streamReader = new StreamReader(responsessss.GetResponseStream()))
               var result = streamReader.ReadToEnd();
               var jss =new JavaScriptSerializer();

empty response

Which App Type (OAuth / Chatbot / JWT / Webhook)?

Which Endpoint/s?
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

can some help? im stuck with this

Hey @rami.heled,

The authorize url is intended to be viewed in the browser, don’t make an API request to it.

Checkout the guide here:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.