API 403 Forbidden

i`m trying to get some data from demo server via API but i always get response Forbidden.

Dim myReq As HttpWebRequest
Dim myResp As HttpWebResponse

myReq = HttpWebRequest.Create("http://demo.mysurvey.solutions/api/v1/interviewers/4e832e70-f9d5-4790-872e-0613486d78d9")

myReq.Method = "GET"
myReq.ContentType = "text/plain"
myReq.Headers.Add("Authorization", "Basic " & Convert.ToBase64String(Encoding.UTF8.GetBytes("Headquarters1:Headquarters1")))

System.Net.HttpStatusCode.Forbidden (403)

Do you have any idea what`s wrong?

You need either API or admin user credentials to use the API endpoints.

Ok, thanks for quick answer.

But there is no API or admin user credentials in any description for public demo server.
So I created personal demo server, created API user and tried it again.
Now i get error message:


‘The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.’

There was also problem in browser to login to server because there is not valid certificate for https. (this is only in personal demo server)



  1. All cloud servers of Survey Solutions in the domain *.mysurvey.solutions must be transacted via https, not http.

  2. Error you are getting is related to a certificate on the PDS site. My colleagues will have a look.

  3. Use API account for all programmatic access from your code (regarding your earlier question).

Best, Sergiy


the certification method we applied to cover the PDS sites was not permitting such a use, which resulted in a site appearing insecure for your client application. Hence, correctly, the error was indicated preventing transacting on an insecure channel.

We have revised the pattern of naming of the PDS sites to avoid 4-th level nesting of the names, and the newly named sites should now be secured.

Best, Sergiy


I think, there is still some problem because my PDS https side have still not valid certificate.



in the self-service portal click the server, select “request to stop”. Once the server is stopped, you will be able to reopen it again and it will open as https://martinb-demo.mysurvey.solutions

Obviously get any data that you wish to preserve off the server before you do this, as it will not survive the closure.

Best, Sergiy