
ZachG.53641 (Customer) asked a question.
I'm developing locally, I have my API key in the header of my request, my public IP address has been white-listed.. I'm able to make three or four requests to the API with successful responses (whether the request is Authentication, Create User, Add User to Group, etc) but at some point the API blocks me out, returning all requests with 401 Unauthorized for who knows how many hours.
All my requests have this setup:
var request = (HttpWebRequest)WebRequest.Create(oktaAPI + endpoint);
request.Method = method;
request.KeepAlive = true;
request.ContentType = "application/json";
request.Accept = "application/json";
request.Headers.Add("cache-control", "no-cache");
request.Headers.Add("Authorization", "SSWS " + oktaKey);
Some of my requests also add the X-Forwarded-For header.
What am I doing wrong? The only thing I have not tried is getting a deviceToken for the trusted application and that's because I just can't figure out how to do that.

Hi Zachary,
I suggest posting this in the Okta Developer Forum at https://devforum.okta.com/, or reaching out to the Developer Support Team (developers@okta.com). They will be able to assist you in troubleshooting this issue.
Thanks,
Brian Anderson
KCS Specialist
Okta