<div dir="ltr">We had a similar issue on 28th Feb -- though I think our error was that there were no grants on the key (it had been working for months, showed fine on the UI). I just made a new key and had no issue after.<div><br></div><div>-m</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 8, 2018 at 9:30 AM, Ponikierski, Grzegorz <span dir="ltr"><<a href="mailto:gponikie@akamai.com" target="_blank">gponikie@akamai.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="PL" link="blue" vlink="purple">
<div class="m_6919273864164358240WordSection1">
<p class="MsoNormal"><span lang="EN-GB">Hi!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">I had the same issue 28<sup>th</sup> Feb. I had to add '</span><span lang="EN-US" style="color:black">probes - Get non-public measurement results</span><span lang="EN-US">' to my API
key to fix it.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal">Grzegorz<u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Daniel Ankers <<a href="mailto:md1clv@md1clv.com" target="_blank">md1clv@md1clv.com</a>><br>
<b>Date: </b>Thursday 2018-03-08 at 18:27<br>
<b>To: </b>"<a href="mailto:ripe-atlas@ripe.net" target="_blank">ripe-atlas@ripe.net</a>" <<a href="mailto:ripe-atlas@ripe.net" target="_blank">ripe-atlas@ripe.net</a>><br>
<b>Subject: </b>[atlas] API Keys problem?<u></u><u></u></span></p>
</div><div><div class="h5">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><a name="m_6919273864164358240__MailOriginalBody">Hi, <u></u><u></u></a></p>
<div>
<p class="MsoNormal"><span>Has there been a change in the way that API keys work for the measurement results API?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>I've got an API key which is granted permission to get results from a non-public measurement. When I do:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span>curl -H "Authorization: Key $KEY" "</span><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__atlas.ripe.net_api_v2_measurements_-24MEASUREMENT_results_-3Fstart-3D&d=DwMFaQ&c=96ZbZZcaMF4w0F4jpN6LZg&r=XA7UqyUiWhQ8cJzGZlnLA89Ync-_75lLOvUCSOji-4w&m=iNz0AYGxeocaIuxLsWKwKh7K2h16JzQdTtmW8FDBRM8&s=03N6T0foyEskCISQ98sngVX9ouV1p9LqRtRch3UuQvM&e=" target="_blank"><span>https://atlas.ripe.net/api/<wbr>v2/measurements/$MEASUREMENT/<wbr>results/?start=</span><span></span></a><span><span style="font-size:10.5pt;font-family:"lucida grande",sans-serif;color:black;background:white">1520510400</span></span><span>"<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>(Replacing $KEY with the key and $MEASUREMENT with the measurement ID) I get:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>{"error":{"status":400,"<wbr>errors":[{"source":{"pointer":<wbr>""},"detail":"Your keys has no grants"}],"code":102,"detail":<wbr>"There was a problem with your request","title":"Bad Request"}}<u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>This was previously working, but I'm not sure exactly when it stopped. I've checked that getting the data through my browser works while I'm logged into the site, and that if I request </span><span></span><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__atlas.ripe.net_api_v2_measurements_-24MEASUREMENT_latest&d=DwMFaQ&c=96ZbZZcaMF4w0F4jpN6LZg&r=XA7UqyUiWhQ8cJzGZlnLA89Ync-_75lLOvUCSOji-4w&m=iNz0AYGxeocaIuxLsWKwKh7K2h16JzQdTtmW8FDBRM8&s=_Dap2R7tBQ2vl_PClpD1bzGT6Hu_4P0mfvEqEyKxvPs&e=" target="_blank"><span><span style="font-size:12.0pt;font-family:"Arial",sans-serif;background:white">https://atlas.ripe.<wbr>net/api/v2/measurements/$<wbr>MEASUREMENT/latest</span></span><span></span></a><span><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222;background:white">
using the API key I get data returned.</span></span><span><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222;background:white"><br>
<br>
</span></span><span><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222;background:white">Regards,</span></span><span><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222;background:white">Dan</span></span><span><u></u><u></u></span></p>
</div>
</div>
</div></div></div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b>Marcel Flores, PhD</b> | <font color="#666666">Research Scientist</font><br><a href="http://VerizonDigitalMedia.com" target="_blank"><font color="#ff0000">VerizonDigitalMedia.com</font></a> | <a href="https://www.peeringdb.com/asn/15133" target="_blank">AS15133</a><br><font color="#666666" style="font-size:12.8px">p: +1 310.593.6880</font><span style="font-size:12.8px"> <font color="#666666">e:</font> </span><a href="mailto:marcel.flores@verizondigitalmedia.com" style="font-size:12.8px" target="_blank"><font color="#ff0000">marcel.flores@verizondigitalmedia.com</font></a><span style="font-size:12.8px"> </span><br><font color="#666666">13031 W Jefferson Blvd. Building 900, Los Angeles, CA 90094</font></div></div>
</div>