# After generating apikey, still, i can able to run without using apikey, why?

**URL:** <https://community.postman.com/t/after-generating-apikey-still-i-can-able-to-run-without-using-apikey-why/14726>\
**Category:** Help Hub\
**Created:** [August 5, 2020, 5:50am UTC](https://community.postman.com/t/after-generating-apikey-still-i-can-able-to-run-without-using-apikey-why/14726 "2020-08-05T05:50:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IssacJackson](https://avatars.discourse-cdn.com/v4/letter/i/77aa72/32.png) [@IssacJackson](https://community.postman.com/u/IssacJackson)\
**Post date:** [August 5, 2020, 5:50am UTC](https://community.postman.com/t/after-generating-apikey-still-i-can-able-to-run-without-using-apikey-why/14726/1 "2020-08-05T05:50:36Z")

</div>

My aim is to run the postman collection in Newman command line without exporting collection, So I used a Public share API link to run.

I can able to run my collection in Newman using collection public shared link, but I want to add security to my collection by generating API key, and I added to the run command like this [https://api.getpostman.com/collections/$uid?apikey=$apiKey](https://api.getpostman.com/collections/%24uid?apikey=%24apiKey)

After generating apikey, still, I can able to run collection in Newman without using apikey, why? It is supposed not to run after I generated ApiKey right? I have more than 150 request in that collection, Do I need to add apikey to all 150 request header/param? Please help me solve the issue.

---

<div class="post-metadata">

**Author:** ![Kurmavatar](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kurmavatar/32/3026_2.png) [@Kurmavatar](https://community.postman.com/u/Kurmavatar)\
**Post date:** [August 6, 2020, 5:58am UTC](https://community.postman.com/t/after-generating-apikey-still-i-can-able-to-run-without-using-apikey-why/14726/2 "2020-08-06T05:58:15Z")

</div>

Hi @IssacJackson 👋

Thank you! We have received your support ticket and since this issue is being addressed there - closing out this thread. Feel free to post out any other queries here 🙂

Also, to let users know about the resolution:

Running without API key should provide users below error:

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/8/847077345f5ea72a7f656dc863d4234fa9622f0c.jpeg)

Regenerating a new API key and sending request as below should help!

> newman run [https://api.getpostman.com/collections/myPostmanCollectionUid?apikey=myPostmanApiKey](https://api.getpostman.com/collections/myPostmanCollectionUid?apikey=myPostmanApiKey)
