404 Forbidden Export Excel

i am tring to Get Excel File using api https://kf.kobotoolbox.org/api/v2/assets/{form-id}/export-settings/{export-settings id}/data.xlsx
but i alwayse get (403) Forbidden
my code :
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(api);
if (survey.key != null)
{
httpWebRequest.Headers.Add(survey.key, survey.value);
}
httpWebRequest.Method = “GET”;
var response = (HttpWebResponse)httpWebRequest.GetResponse();

@ghaith.houli, did you try making your data public? Maybe that should solve your issue.

it works thank you :brown_heart: :brown_heart:

1 Like