# Got 401 but I am sing the proper API key

**URL:** <https://opendataforum.transport.nsw.gov.au/t/got-401-but-i-am-sing-the-proper-api-key/2046>\
**Category:** App development\
**Created:** [June 27, 2020, 7:37am UTC](https://opendataforum.transport.nsw.gov.au/t/got-401-but-i-am-sing-the-proper-api-key/2046 "2020-06-27T07:37:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nabinwell](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/nabinwell/32/490_2.png) [@nabinwell](https://opendataforum.transport.nsw.gov.au/u/nabinwell)\
**Post date:** [June 27, 2020, 7:37am UTC](https://opendataforum.transport.nsw.gov.au/t/got-401-but-i-am-sing-the-proper-api-key/2046/1 "2020-06-27T07:37:00Z")

</div>

Please have a look at the screenshot of my postman … and suggest me the cause of getting 401

 ![Screen Shot 2020-06-27 at 13.20.02](https://us1.discourse-cdn.com/flex019/uploads/nsw/original/1X/97dffedb91e39d1d45b1641e65f451dd92231147.png)

---

<div class="post-metadata">

**Author:** ![jayen](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/jayen/32/208_2.png) [@jayen](https://opendataforum.transport.nsw.gov.au/u/jayen)\
**Post date:** [June 28, 2020, 11:32am UTC](https://opendataforum.transport.nsw.gov.au/t/got-401-but-i-am-sing-the-proper-api-key/2046/2 "2020-06-28T11:32:05Z")

</div>

Don’t use the API Key authentication type, or if you do, set the key to “Authorization” and the value to “apikey lasdjfhakjdhfkjas”. See here for more details: [API Basics | TfNSW Open Data Hub and Developer Portal](https://opendata.transport.nsw.gov.au/api-basics)

---

<div class="post-metadata">

**Author:** ![sabrina.morgan](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/sabrina.morgan/32/489_2.png) [@sabrina.morgan](https://opendataforum.transport.nsw.gov.au/u/sabrina.morgan)\
**Post date:** [June 28, 2020, 9:59pm UTC](https://opendataforum.transport.nsw.gov.au/t/got-401-but-i-am-sing-the-proper-api-key/2046/3 "2020-06-28T21:59:26Z")

</div>

Thanks Jayen!
