I am trying to use the endpoint https://analytics.eu.amplitude.com/api/2/export and am using a curl command like this:
curl -k -u $API_Key:$Secret_Key 'https://amplitude.com/api/2/export?start=${STARTTIME}&end={ENDTIME}' >> filename.zi
If I use the API key for my project, the same one that is used to send data from the web app, i get a error 403.
How do I obtain the correct API keys to extract data from the api?